invariant failed 3a you should not use 3clink 3e outside a 3crouter 3e

Solutions on MaxInterview for invariant failed 3a you should not use 3clink 3e outside a 3crouter 3e by the best coders in the world

showing results for - "invariant failed 3a you should not use 3clink 3e outside a 3crouter 3e"
Benjamin
10 Aug 2020
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