Skip to content

Instantly share code, notes, and snippets.

@JacobKnaack
Last active June 13, 2019 23:36
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 JacobKnaack/a7bf3c8306c6355ccd7351c1db3512b0 to your computer and use it in GitHub Desktop.
Save JacobKnaack/a7bf3c8306c6355ccd7351c1db3512b0 to your computer and use it in GitHub Desktop.
Cosmic Messenger INITIAL React App entry file
import React from 'react';
import { hydrate } from 'react-dom';
class App extends React.Component {
render() {
return (
<div className="app-container">
Hello World
</div>
);
}
}
hydrate(
<App />,
document.getElementById('app')
);
module.hot.accept();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment