mirror of
https://github.com/facebook/react.git
synced 2026-02-24 04:33:04 +00:00
The only substantial difference here is that I made the harmony example use ES6 classes. The server rendering example was pretty wacky and hard to run but I did confirm that it works.
15 lines
356 B
JSON
15 lines
356 B
JSON
{
|
|
"name": "react-basic-commonjs-example",
|
|
"description": "Basic example of using React with CommonJS",
|
|
"main": "index.js",
|
|
"devDependencies": {
|
|
"browserify": "^6.3.3",
|
|
"envify": "^3.2.0",
|
|
"react": "^0.13.0",
|
|
"reactify": "^0.17.1"
|
|
},
|
|
"scripts": {
|
|
"build": "browserify --debug --transform reactify index.js > bundle.js"
|
|
}
|
|
}
|