Last active
September 20, 2017 09:01
-
-
Save elcodabra/302d166dd7f485d6710e0c39b0268675 to your computer and use it in GitHub Desktop.
Bootstrapping a React project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const App = () => { | |
return ( | |
<div className="container"> | |
<div className="starter-template"> | |
<h1>React Project</h1> | |
</div> | |
</div> | |
) | |
} | |
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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