Skip to content

Instantly share code, notes, and snippets.

@Badestrand Badestrand/react-mini.html
Last active Nov 20, 2018

What would you like to do?
Simple React in browser
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style rel="stylesheet" type="text/less">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
main {
width: 800px;
margin: 50px auto;
<script src=""></script>
<div id="app"></div>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script type="text/babel">
class App extends React.Component {
render() {
return (
ReactDOM.render(<App/>, document.getElementById('app'))
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.