Understand Dynamic Importing in JavaScript

preview_player
Показать описание
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

#JavaScript #Module #dynamicimport #export #defaultimport #namedimport
Рекомендации по теме
Комментарии
Автор

Thanks for the session. Very informative

ragulhm
Автор

I'm trying to import class and function for a button, is there any possible way.

Jinx-vhjq