[Keywords] Modules

hy9202·2020년 2월 13일
0

Glossary & Keywords📖

목록 보기
3/5

Reference

JavaScript Modules in 100 Seconds
JavaScript ‪Module Cheatsheet
JavaScript ES6 Modules


Modules

: a file that exports some code

ES6 modules

Default export & import

Named (multiple) exports & imports

  • Benefits of named import
    : tree shakable -> import what you need, shake off the rest
    (smaller bundle size, better performance)

Example

profile
JavaScript를 공부하고 있습니다:)

0개의 댓글