Christian Sakai | Harris Robin Kalash
The Front End
I think that React's rise in popularity is partly due to the fact that it breaks some of the most fundamental conventions we have in front-end development.
Where we come from.
JS Frameworks (Meteor, Angular, Ember, Backbone)
Pros
Easy to start
Faster development
Cons
JS world is constantly changing
The framework (author/s) decides the implementation
Does not compose well
Time investment in complex learning curve
Overkill features
Pros
Easy to start
Cons
Steep learning curve due to big API (controllers, directives, services, factories)
Hard to test, maintain & integrate with other libraries
Overkill
About to be deprecated in favor of 2.0
Slow performance due to design choice
Debugging is hard
No server side rendering
Pros
Easy learning curve due to small API
Easy to test
Better performance than most client side frameworks out of the box
Even better performance with unidirectional data flow (Flux/Redux)
Support server side rendering + client side mounting
Cons
Can’t be used by itself
Pros
Lesser boilerplate code than Flux
Easier learning curve
Easy to test (just pure functions)
Easy to manage application state (one source of truth called “store”)
Possible to implement middleware
Time travel functionality
require('./styles.css');
require('./template.jade');
require('./image.png);:local(.foo) { … }
COMPILES TO
._1rJwx92-gmbvaLiDdzgXiJ { … }
postCSS is completely modular and doesn't do much. All functionality comes from plugins.
cssnext
A bunch of postCSS plugins based on proposed CSS4 features. (The Babel of CSS).