Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react lazy import non default

const OtherComponent = React.lazy(
  () => import('./OtherComponent').then(module => ({ default: module.OtherComponent }))
);
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #react #lazy #import #default
ADD COMMENT
Topic
Name
7+8 =