Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Last active December 18, 2017 15:24
Show Gist options
  • Save sethdavis512/b24c4223ba722cab4a9baa610bbdbb9d to your computer and use it in GitHub Desktop.
Save sethdavis512/b24c4223ba722cab4a9baa610bbdbb9d to your computer and use it in GitHub Desktop.
<!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