Built with blockbuilder.org
forked from anonymous's block: fresh block
Built with blockbuilder.org
forked from anonymous's block: 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")) | |
); |