Around you, small companies and startups are using React. Taking advantage of React’s composable architecture and modern tooling, they put out new features at a speed you could only dream of. You’d like to start using React as well, or perhaps you already introduced it for some small components. But you simply can’t afford to rewrite your entire front-end! Your customers are using your front-end daily, and they expect maintenance and new features! Luckily, you don’t have to rewrite, and you shouldn’t, really! You can migrate to React one small piece at a time.

In this article, I’ll demonstrate how you can wrap your existing code in a React component, untangle your application’s states and their representation, and open up the potential for further refactoring, without breaking your current application.

Read more →