DEV Community

Discussion on: ReactJS: Component everything or not?

Collapse
 
stereoplegic profile image
Mike Bybee

It's important to note that, in an SPA, the normal page paradigm doesn't necessarily apply. If your header, footer, etc. aren't changing from "page" to "page," it makes more sense to import them once at a higher level than the "pages" of the app (or even just lay them out your index.html in some cases, as separate HTML elements from the div that React loads).