Skip to content

Instantly share code, notes, and snippets.

@Nitive
Created February 15, 2016 07:17
Show Gist options
  • Save Nitive/f982d5ae0545a89f39ea to your computer and use it in GitHub Desktop.
Save Nitive/f982d5ae0545a89f39ea to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
<div id="root"></div>
</body>
</html>
import React, { Component } from 'react'
import { render } from 'react-dom'
class List extends Component {
render() {
return <div>test</div>
}
}
render(<List />, document.getElementById('root'))
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"react": "^0.14.0",
"react-dom": "^0.14.0"
}
}
/*
unknown: Property id of VariableDeclarator expected node to be of a type ["LVal"] but instead got null
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment