티스토리 뷰
평범한 import 방식
import React from 'react'; // Import the default export from a module.
import { Component, PropTypes } from 'react'; // Import named exports from a module.
import * as Redux from 'react-redux'; // Named import - grab everything from the module and assign it to "redux".
Bare Import
import 'react';
이런식으로 모듈을 가져오기만 하고 변수에 할당하지 않는것을 Bare Import라고 한다.
Bare는 "없는" 이라는 뜻이다.
Bare Import => 변수가 없는 import라는뜻.
'Javascript' 카테고리의 다른 글
Class에서 arrow function을 사용하지 말아야하는 이유 (3) | 2020.06.30 |
---|---|
how to detect element size change in javascript (0) | 2020.06.15 |
async 키워드 (0) | 2020.05.14 |
함수가 AsyncFunction인지 알아보는 방법 (0) | 2020.05.14 |
Promise와 콜백 패턴의 가장 큰 차이 (0) | 2020.05.14 |
댓글
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- type alias
- es6
- atomic design
- hydrate
- async
- return type
- useEffect
- design system
- mobx
- useRef
- await
- webpack
- typescript
- reactdom
- reducer
- props
- Action
- Polyfill
- storybook
- Next.js
- computed
- react hooks
- react
- javascript
- server side rendering
- Babel
- promise
- state
- reflow
- rendering scope
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함