Like many great tools, React focuses on one problem: the views in your web application. The rest of the technology stack is left up to you. If you haven’t had a chance to play with React, I highly recommend spending a couple of hours reading up on it.
If, like me, you’re used to building web applications around the MVC design pattern, then your next move is likely to reach for something like Backbone.js.
As it turns out, Backbone is quite a nice fit with React. You can simply switch out your Backbone views with React components. There’s even a nice little mixin.Let’s say that we have two React components: a TextField and Label. They’re both bound to the same Backbone model, so when the text in the text field changes the label updates its text automatically. To make things more interesting the label shows the text in reverse.
Your new post is loading...