- 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.
Thanks for this. Upon startup I get an error:
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./js/index in /Users/videri/dev/videri/layout-engine