- Stick these files on a computer somewhere
npm install
npm start
Assumes this folder structure:
js/
components/
AppComponent.cjsx
VideoPlayerComponent.cjsx
index.cjsx
package.json
webpack.config.js
This will handle .js
, .jsx
, .coffee
& .cjsx
files. You can use whatever extensions you want though!
If you're a Sublime user, sublime-react has you covered for .cjsx
syntax highlighting.
Shamelessly appropriated & lovingly distilled from the excellent coffee-react-quickstart & some stuff @doylem showed me.
@jdreux you'll need to arrange the files in this folder structure:
(sorry, a gist is probably a bad format for something that requires a specific folder structure)