1 min readAug 29, 2020
import("./" + routeMapping[selected.value]).then((module) => {
setRoutes(module.currentRoutes);
});
In the above format to write dynamic importing, the module can be destructured.
import("./" + routeMapping[selected.value]).then((module) => {
setRoutes(module.currentRoutes);
});
In the above format to write dynamic importing, the module can be destructured.
UI tech lead who enjoys cutting-edge technologies https://www.linkedin.com/in/jennifer-fu-53357b/