Skip to content

Instantly share code, notes, and snippets.

@clc80
Last active August 8, 2018 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clc80/dfa06ee399f8caaf1f0586429dec15ae to your computer and use it in GitHub Desktop.
Save clc80/dfa06ee399f8caaf1f0586429dec15ae to your computer and use it in GitHub Desktop.
React Course First Course JSX Introduction
class App extends React.Component {
render() {
return (
<div>
<h1>Here is my first React App!</h1>
</div>
);
}
}
ReactDOM.render(<App />, document.getElementById("app"));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My First React App</title>
</head>
<body>
<div id="app"></div> //This is important to have
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment