Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Example: Bare Minimum
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>React Example: Bare Minimum</title>
<link rel="icon" href="" />
<div id="root"></div>
<!-- Dependencies: React, React-DOM, and Babel -->
<script src=""></script>
<script src=""></script>
<script src=""></script>
<!-- App -->
<script type="text/babel">
const App = () => <div>Hello World</div>;
ReactDOM.render(<App />, document.getElementById('root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.