DEV Community

Discussion on: How to use React Suspense for Code-Splitting?

Collapse
 
marinovicmarko profile image
Marko Marinovic

I agree with Sergio. You should find the best use case for your app. Starting at the router level is perfect. I used this approach for my website because blog post content is in a form of .md files and it would be bad bundle it all together. It kinda mimics the behavior you would get by storing blog content in database and retrieving it on demand.