Skip to content

Instantly share code, notes, and snippets.

@alexnm
Created March 25, 2018 20:18
Show Gist options
  • Save alexnm/e2a18d284fc2fe9aaf52b0b858f10664 to your computer and use it in GitHub Desktop.
Save alexnm/e2a18d284fc2fe9aaf52b0b858f10664 to your computer and use it in GitHub Desktop.
Basic client with hydrate
import ReactDOM from "react-dom";
import Layout from "./components/Layout";
const app = document.getElementById( "app" );
ReactDOM.hydrate( <Layout />, app );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment