Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created July 21, 2017 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbranyen/ccdc7bb264813759bc3ed9d796757d28 to your computer and use it in GitHub Desktop.
Save tbranyen/ccdc7bb264813759bc3ed9d796757d28 to your computer and use it in GitHub Desktop.
const { render } = require('react-dom');
const mount = document.querySelector('main');
class Root {
render() {
return (
<div>Hello world</div>
);
}
}
render(<Root />, mount);
-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