react/examples/basic-commonjs
Ben Alpert 4cb4bd0220 Add shims to examples
I find myself often using (modified) examples to test in IE and it's a pain to have to add the shims in every time. Might as well just add them in always.
2014-05-21 00:07:18 -07:00
..
README.md Add basic CommonJS example with browserify 2014-04-29 21:57:08 +04:00
index.html Add shims to examples 2014-05-21 00:07:18 -07:00
index.js Add basic CommonJS example with browserify 2014-04-29 21:57:08 +04:00
package.json Add basic CommonJS example with browserify 2014-04-29 21:57:08 +04:00

README.md

Basic example of using React with Browserify

Run npm install in the directory to install React from npm. Then run:

./node_modules/.bin/browserify --debug --transform reactify ./index.js > ./bundle.js

to produce bundle.js with example code and React.