DEV Community

Discussion on: Lazy loading react components with dynamic imports and intersection observer

Collapse
 
fahad07_khan profile image
Fahad Khan

There is different way of implementation for the same approach. Your code might look easier but which approach is better?

Collapse
 
maciekgrzybek profile image
Maciek Grzybek

They are pretty much the same, I just abstracted it out to its own component. Also I'm not saying that one is better than another :)