Sweet But Psycho

  • 홈
  • 태그
  • 방명록

import 2

21.11.06 import {} or not

React 프로젝트를 진행하다보면 아래와 같이 import 형식에 차이가 있는 것을 확인할 수 있다. //the case of A import { A } from A.js //the case of B import anything from B.js { }의 유무에 따라 어떤 차이가 있는 것일까 ✔️A의 경우에는 A 파일에서 export로 내보내면서 지정된 변수로 현재 파일에 불러온다. ✔️B의 경우에는 B 파일에서 default export로 내보내면서 현재 파일에서 다른 변수명으로 지정할 수 있다. //the file of A const A = () => { /// } export A; //the file of B const B = () => { /// } export default B;

React.js 2021.11.06

21.07.15 import, inheritance, storage, memory

CryptoZombies chap.2-05~08 ✔import "./zombiefactory.sol"; 동일한 폴더에 있는 zombiefactory.sol이라는 파일을 컴파일러가 불러오게 한다. solidity의 파일 확장자는 sol이다. ✔Inheritance 상속 : contract 자식 컨트랙트 is 부모 컨트랙트 contract ZombieFeeding is ZombieFactory { >>ZombieFeeding이 자식 컨트랙트이고 ZombieFactory가 부모 컨트랙트! ZombieFeeding은 ZombieFactory의 함수, 이벤트, 제어자에 접근할 수 있다. A라는 변수가 있고 B라는 배열이 있을 때, ✔Storage : string [ ] storage A = B[2]; A는 B에 ..

solidity 2021.07.16
1
더보기
프로필사진

  • 분류 전체보기 (258)
    • 암호학 (15)
    • SSI (6)
    • iOS (0)
    • 블록체인 (20)
    • 이더리움 (5)
    • Bitcoin (2)
    • mac zsh (16)
    • typescript (8)
    • react native (23)
    • JavaScript (35)
    • solidity (8)
    • Bandit (14)
    • 알고리즘 공부 (12)
    • 소프트웨어 개념 (5)
    • Network (7)
    • React.js (11)
    • Next.js (2)
    • Node.js (10)
    • Prisma (8)
    • GraphQL (3)
    • Flutter (4)
    • C++ (1)
    • rust (1)
    • GoLang (6)
    • Ubuntu (4)
    • CSS (8)
    • Graphic (6)
      • Blender (3)
    • 회고 및 기타 (8)

Tag

생성자, reactnative, wirelessDebugging, Map, AccountKeyFail, nonWitnessUtxo, 생성자함수, baseFee, Flutter, EIP1559, jemerald, hasOwnProperty, in, maxPriorityFee, key, witnessUtxo, component, SSL, import, useEffect,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바