Created
January 16, 2021 11:38
-
-
Save adodado/4996281062df25bad54bb51db8854d0e to your computer and use it in GitHub Desktop.
medium_microfrontend_article_nav-app root.component.js changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { BrowserRouter, Link } from "react-router-dom"; | |
import "./root.component.css"; | |
export default function Root() { | |
return ( | |
<BrowserRouter> | |
<nav className="nav"> | |
<Link to="/app1" className="link"> | |
Micro frontend app 1 | |
</Link> | |
<Link to="/app2" className="link"> | |
Micro frontend app 2 | |
</Link> | |
</nav> | |
</BrowserRouter> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment