Created
November 17, 2015 23:33
-
-
Save zpao/b736e79d7d40aa304a87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copy & Paste the commands below to build your very own bundle that exposes React, ReactDOM, ReactDOMServer | |
# Assumes *nix and node & npm are installed | |
npm install browserify react react-dom | |
echo "global.React = require('react');\nglobal.ReactDOM = require('react-dom');\nglobal.ReactDOMServer = require('react-dom/server');" > source.js | |
NODE_ENV=development ./node_modules/.bin/browserify source.js > bundle.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment