DEV Community

Discussion on: Rewriting parts of website in react, thoughts and best practices?

Collapse
 
sergiodxa profile image
Sergio Daniel Xalambrí • Edited

I helped migrate a huge Backbone and jQuery app to React, what we did was to start with small components, and render them individually, the great thing about React is that you can do multiple renders in the same page in different nodes of the DOM, so you don’t need to make your whole app a React app, this let you gradually migrate, once multiple areas of the same page are in React you can create a component to wrap them and render a single component, eventually you will migrate everything to React and then you can introduce React Router is you want to make it a SPA.