Skip to content

Instantly share code, notes, and snippets.

  • An NPM module could be loaded from either dist or lib folder. It is defined in the package.json file "main".
  • Change made directly to lib or dist folder will cause the wrong lines in debugger.
  • Example to build the dependencies
  1. Download draft-js-export-html-master
  2. Run "npm install".
  3. Change the source code
  4. Run "npm run build" to build the code to lib folder.
  5. Download react-rte
  • npm install express

  • npm install -g node-inspector

  • npm install -g devtool

  • devtool app.js --watch

  • npm install mongodb

Redux-vs-Alt

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

NPM Install Error

To solve this issue when running "npm install", install Visual Studio 2015 and then

"File" -> "New Project" -> choose C++ template and install C++ support.

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.