Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ES2022 - Top-level await modules

const messages = await import(`./messages-${language}.mjs`);
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #await #modules
ADD COMMENT
Topic
Name
2+7 =