DEV Community

Discussion on: Angular Dev's first React project - Netflix clone

Collapse
 
ajitsinghkaler profile image
Ajit Singh

Why don't we use our folder structure to manage our components. We can keep one type of components in one folder and we can use import for lazy loading a bunch of components in react too. So I don't see any need for module.

Collapse
 
vugar005 profile image
Vugar

İ am afraid with React.lazy you need to use React.lazy(()>import.... ) on every component which depends on that component. Is not it?

Thread Thread
 
ajitsinghkaler profile image
Ajit Singh • Edited

Just create an intermediate component. That is how everyone that use SCAM in angular does it anyway.