Backbone.js powers some of the largest web applications on the Internet and we use the framework extensively at Formidable Labs. It provides simple and flexible abstractions that developers can use to organize and create large-scale applications.
At the same time, Backbone.js application development runs in to complexities with issues such as:
- Heavy handed DOM wiping and reflows
- Preventing memory leaks and dreaded “Zombie Views“
- Composing and aggregating child views correctly
Enter React. React is a UI (view) layer for web applications that uses virtual DOM rendering and a modular architecture for creating reusable, web components. It offers some exciting new possibilities as a replacement for
Backbone.js views, while keeping the rest of the framework pieces that Backbone.js does very well.
Backbone.js with React!
The talk slides go in to more detail, but some of the interesting results we get with a React-based view layer include:
- A slimmer overall minified bundle. With React as the view layer, we can remove dependencies on jQuery and Underscore.js.
- … and some other pretty cool stuff!
The talk SlideShare deck is available (with downloadable PDF).