Created
July 21, 2017 00:28
-
-
Save tbranyen/ccdc7bb264813759bc3ed9d796757d28 to your computer and use it in GitHub Desktop.
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 { render } = require('react-dom'); | |
const mount = document.querySelector('main'); | |
class Root { | |
render() { | |
return ( | |
<div>Hello world</div> | |
); | |
} | |
} | |
render(<Root />, mount); |
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
-rw-rw-r-- 1 tbranyen 14K Jul 20 17:26 app.min.js.gz # Preact | |
-rw-rw-r-- 1 tbranyen 19K Jul 20 17:20 app.min.js.gz # diffHTML | |
-rw-rw-r-- 1 tbranyen 86K Jul 20 17:23 app.min.js.gz # React |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment