Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Created January 21, 2016 23:04
Show Gist options
  • Save tuki0918/30133a88dcc42d2e223c to your computer and use it in GitHub Desktop.
Save tuki0918/30133a88dcc42d2e223c to your computer and use it in GitHub Desktop.
{"presets": ["es2015", "react"]}
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render() [
return <div>Hello</div>
]
}
ReactDOM.render(<App />, document.getElementById('app'));
$ npm init
$ npm install -g babel
$ npm install react react-dom --save
$ npm install babel-preset-es2015 babel-preset-react --save-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment