Skip to content

Instantly share code, notes, and snippets.

@AaronHolbrook
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronHolbrook/a1566500fe7b04b660d2 to your computer and use it in GitHub Desktop.
Save AaronHolbrook/a1566500fe7b04b660d2 to your computer and use it in GitHub Desktop.
Backbone vs React brainstorm

React.js

Pros:

  • handles data binding & templating
  • dynamic updating of view - only changes what's required, intelligent, throttled updating

Cons:

  • can't load JSX file and read/render from PHP
  • requires odd JSX JS template files
  • relatively young, immature framework
  • no experience with React at 10up
  • unknown quality/breadth of documentation

Notes:

Backbone & Handlebars

Pros:

  • handlebars is clean, easy to read, write

  • handlebars is language agnostic (can be loaded/read by PHP if need be)

  • can compress template files via grunt, load only when needed - no need to use empty divs

  • more mature framework

  • multiple backbone users at 10up

  • lots of documentation/examples

Cons:

  • Have to build your own data binding
  • no logic in handlebars template files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment