showing results for - "invariant failed you should not use link outside a router test"
Dina
16 Apr 2016
1import React from "react";
2import ReactDOM from "react-dom";
3import { BrowserRouter } from "react-router-dom";
4import App from "./App";
5
6it("renders without crashing", () => {
7  const div = document.createElement("div");
8  ReactDOM.render(
9<BrowserRouter>
10  <App />
11</BrowserRouter>,
12div
13  );
14  ReactDOM.unmountComponentAtNode(div);
15})
16