Created
October 19, 2017 00:40
-
-
Save StoneCypher/d75512b91dce0192b7267c40ca48e901 to your computer and use it in GitHub Desktop.
Don't do this in prod, but when you're learning React or having fun, honestly, fuck the build toolchain entirely
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Toy non-Babel React from CDN example</title> | |
<script src="https://fb.me/react-15.0.0.js"></script> | |
<script src="https://fb.me/react-dom-15.0.0.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script> | |
<script type="text/babel"> | |
var Greeting = props => <div>Hello, World</div>; | |
window.onload = () => | |
ReactDOM.render( | |
<Greeting/>, | |
document.getElementById('greeting-div') | |
); | |
</script> | |
</head> | |
<body> | |
<div id="greeting-div"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment