We have a fairly complex dashboard written with PHP, HTML and JQuery but we are considering rewriting parts that are slow/needs updated with react.
I was wondering if anyone has past experience and what is the best way to go about this?
Best way to add react to an old project?
Top comments (1)
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.