Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2016 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/400158927a82cfbf01e6233bb7398591 to your computer and use it in GitHub Desktop.
Save anonymous/400158927a82cfbf01e6233bb7398591 to your computer and use it in GitHub Desktop.
fresh block
<!DOCTYPE html>
<script src="https://jspm.io/system@0.19.js"></script>
<script>
System.config({
transpiler: 'babel',
babelOptions: {}
});
System.import('./main.js');
</script>
import React from 'react';
import ReactDOM from 'react-dom';
const Hello = ({name}) => <h1>Hello {name}!</h1>;
ReactDOM.render(
<Hello name={"dude"}/>,
document.body.appendChild(document.createElement("div"))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment