React.js

...and other stories

React is

  • Different
  • Only about the view
  • Fast

Different

  • Not an MVC
  • Not separating concerns
  • Not a full framework

 

Only about the view

  • Bring your own router
  • Bring your own API integration
  • Bring your own controller

Fast

  • The virtual DOM lets you pretend you rerender on every state change
  • ...but without the performance hit

State is necessary

State is

evil

Code as if the view was fully rerendered every time

...but wouldn't that be slow?

Virtual DOM

to the rescue

Components

Everything together

  • Props
  • View
  • Render
  • "HTML"
  • JSX

JSX

  •  Inline HTML in javascript
  • ...isn't that evil?
  • ...what about separation of concerns

Inline Styles

What about the other stuff?

Stores

Flux

Reflux

Router

  • react-router

Server

react

By cortex

react

  • 1,406
Loading comments...

More from cortex