Understand Dynamic Importing in JavaScript

Опубликовано: 20 Май 2021
на канале: Technical Potpourri
378
15

While working with JavaScript projects, as your project will grow, it will become very much a necessity to distribute your code into multiple files i.e. do some logical grouping by functionalities. When we are doing that, we are basically creating "modules". A module is basically a JavaScript file that can contain classes, variables, or functions that are logically related.

In this series of two videos, I will be focusing on basic concepts of import/export from/in a module, some considerations, and dynamic importing.

In the first video, I have discussed -

#. How to export variables, functions, and classes in a module
#. How to import variables, functions, and classes from a module
#. Important considerations while importing or exporting JavaScript module

In the second video, I will be discussing -

#. Why do we need dynamic importing?
#. Example

Blog Post Part 1: https://www.sudipta-deb.in/2021/05/un...
Video Part 1:    • Understand Modules in JavaScript  
Blog Post Part 2: https://www.sudipta-deb.in/2021/05/un...
JavaScript Playlist: https://bit.ly/311yS9T

#JavaScript #Module #dynamicimport #export #defaultimport #namedimport