Skip to content

Instantly share code, notes, and snippets.

@elcodabra
Last active September 20, 2017 09:01
Show Gist options
  • Save elcodabra/302d166dd7f485d6710e0c39b0268675 to your computer and use it in GitHub Desktop.
Save elcodabra/302d166dd7f485d6710e0c39b0268675 to your computer and use it in GitHub Desktop.
Bootstrapping a React project
const App = () => {
return (
<div className="container">
<div className="starter-template">
<h1>React Project</h1>
</div>
</div>
)
}
export default App;
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>React Example</title>
<base href="./">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app-root"></div>
</body>
</html>
import App from './app';
ReactDOM.render((
<App />
), document.getElementById('app-root'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment