Skip to content

Instantly share code, notes, and snippets.

@nobuti nobuti/index.html
Created Oct 19, 2017

What would you like to do?
Almost pure React
<div id="react-root"></div>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script id="react-app" type="text/template">
const App = ({name}) => {
return <h1>Welcome to React, {name}</h1>;
ReactDOM.render(<App name="Buddy" />, document.getElementById("react-root"));
eval(Babel.transform(document.getElementById("react-app").innerHTML, {presets: ['es2015', 'react']}).code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.