Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import React from "react";
  2. import { BrowserRouter as Router, Route, Link } from "react-router-dom";
  3.  
  4. Import Cadastro from './cadastro'
  5.  
  6.  
  7. function AppRouter() {
  8. return (
  9. <Router>
  10. <div>
  11. <Link to="/cadastro/" className="btn">Cadastre-se</Link>
  12.  
  13. <Route path="/" exact component={Index} />
  14. <Route path="/cadastro/" component={Cadastro} />
  15. </div>
  16. </Router>
  17. );
  18. }
  19.  
  20. export default AppRouter;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement