OSHey Tapas Adhikary, thanks for the great article. I think a small error prevented your example from working for me. You need to return the imported component in importDemo const importDemo = file => return lazy(() => import(`./demo/${file}`) .catch(() => console.log('Error in importing')) );Comment·Article·Dec 9, 2022·Understanding Dynamic imports, Lazy and Suspense using React Hooks