This is the React boilerplate code published at React Getting Started Docs as of August 13, 2016.
Built with blockbuilder.org
This is the React boilerplate code published at React Getting Started Docs as of August 13, 2016.
Built with blockbuilder.org
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello React!</title> | |
<script src="https://npmcdn.com/react@15.3.0/dist/react.min.js"></script> | |
<script src="https://npmcdn.com/react-dom@15.3.0/dist/react-dom.min.js"></script> | |
<script src="https://npmcdn.com/babel-core@5.8.38/browser.min.js"></script> | |
</head> | |
<body> | |
<div id="example"></div> | |
<script type="text/babel"> | |
ReactDOM.render( | |
<h1>Hello, world!</h1>, | |
document.getElementById('example') | |
); | |
</script> | |
</body> | |
</html> |