Skip to content

Instantly share code, notes, and snippets.

@bhauman
Last active January 7, 2017 14:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bhauman/146e067c8cc4d5aa3fd2 to your computer and use it in GitHub Desktop.
Comments: Straightforward (Live) Functional JavaScript: Building the Yome Widget
@rsmoorthy
Copy link

Super, interesting and useful!

@fasiha
Copy link

fasiha commented Jan 7, 2017

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:

mudroppi/Yome.js@b7f31a6

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 via npm run build. (This package.json doesn’t show it, but you should make a watch 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