Skip to content

Instantly share code, notes, and snippets.

@ovpv

ovpv/index.js

Created Aug 7, 2019
Embed
What would you like to do?
adding react router dom browser router to client side
import React from "react";
import { hydrate } from "react-dom";
import App from "./app";
import { BrowserRouter as Router } from "react-router-dom";
hydrate(
<Router>
<App />
</Router>,
document.getElementById("app")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment