var React = require('react');
var $ = require('jquery');
/********************************************************
This code is to explain state mutation in React and demo
why immutable.js is a better approach
**********************************************************/
var Test = React.createClass({
#React ES7 ES6 ES5 Syntax
- https://facebook.github.io/react/docs/reusable-components.html
- https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html
- https://babeljs.io/blog/2015/06/07/react-on-es6-plus
- http://www.ian-thomas.net/autobinding-react-and-es6-classes/
- http://blog.ricardofilipe.com/post/babel-react-es7-sample
- standard/standard#372
-
rd /S /Q node_modules
-
robocopy c:\temp node_modules /purge
-
npm cache clean
-
cd %APPDATA%\npm-cache
-
Go back to NPM 2
npm -g install npm@latest-2
A line by line comparison of Redux and Alt's implementation of Dan Abramov's Todo list example
Redux is getting hot! The trend can be seen from this Redex vs Alt NPM trend chart. However the framework of Alt + AltContainer is a much more concise and much easier to understand than Redux.
It seems Alt is not getting as much attention as Redux. There may be a few reasons for this. First, the best coding approach of Alt + AltContainer is not well documented. Second, even though Alt came out earlier than Redux but AltContainer is a few months later than Redux. Third, Dan Abramov the author of both React Hot Loader and Redux is a better known figure.
If you haven't heard of Alt, please read along and see why I think Alt is much easier than Redux. This is a line by line comparison of Dan Abramove's Todo list demo for Redux and my porting of the Todo list to Alt implementation.
To run the [sample code from Github](https://github.com/eth