Last active
January 7, 2017 14:39
-
-
Save bhauman/146e067c8cc4d5aa3fd2 to your computer and use it in GitHub Desktop.
Comments: Straightforward (Live) Functional JavaScript: Building the Yome Widget
Super, interesting and useful!
A friend and I worked through this setup for early 2017. A lot has changed in the tooling, but here’s a snapshot of the repo with everything working:
You’ll need:
- We downloaded react.min.js and react-dom.min.js from the CDN and put them in
build
: http://reactjs.cn/ npm install
to install Babel locally- Babel scripts in
package.json
that you run vianpm run build
. (This package.json doesn’t show it, but you should make awatch
script containing"babel -w src -d build"
(note that extra-w
flag for watch). .babelrc
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Babel 6, I had to modify the npm commands:
The watch command is
This handles ES2015 & JSX transpiling! 👍