got react working

master
Matt Huntington 9 years ago
parent a421adc7e7
commit c1a0c3ec14

1
.gitignore vendored

@ -1,2 +1 @@
node_modules node_modules
dist

@ -6,5 +6,7 @@
</head> </head>
<body> <body>
<h1>Stuff</h1> <h1>Stuff</h1>
<main></main>
<script src="/dist/bundle.js" charset="utf-8"></script>
</body> </body>
</html> </html>

@ -0,0 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<h2>Matt is amazing</h2>,
document.querySelector('main')
);
Loading…
Cancel
Save