Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (30 sloc) 1.02 KB
<!-- INSERT BOILER PLATE CODE -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- REACT LIBRARY -->
<script src="https://unpkg.com/react@15.5.4/dist/react.js"></script>
<!-- REACT DOM LIBRARY -->
<script src="https://unpkg.com/react-dom@15.5.4/dist/react-dom.js"></script>
<!-- BABEL LIBRARY -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.25.0/babel.min.js"></script>
<title>Let's React!</title>
</head>
<body>
<!-- DESIGNATED LOCATION TO INSERT REACT CONTENT -->
<div id="app">React has not rendered yet</div>
<!-- JAVASCRIPT -->
<script type="text/babel">
// RENDER REACT TO THE DOM - WILL ACCEPT TWO ARGUMENTS (REACT WHAT, REACT WHERE)
ReactDOM.render(
// REACT WHAT - JSX
<h1>Hello World</h1>,
// REACT WHERE - DIV WITH ID OF "APP"
document.getElementById("app")
);
</script>
</body>
</html>
You can’t perform that action at this time.