Hey 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'))
);