Last active
December 18, 2017 15:24
-
-
Save sethdavis512/b24c4223ba722cab4a9baa610bbdbb9d to your computer and use it in GitHub Desktop.
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>React Template</title> | |
<style> | |
body { | |
font-family: sans-serif; | |
font-weight: 100; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.24.0/babel.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script> | |
<script type="text/babel"> | |
class App extends React.Component { | |
render() { | |
const { text } = this.props; | |
return ( | |
<div className="app"> | |
<h1> | |
React App | |
</h1> | |
<p> | |
{ text } | |
</p> | |
</div> | |
); | |
} | |
} | |
ReactDOM.render( | |
<App text="Hey, it works!" />, | |
document.getElementById('app') | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment