Guest User

Untitled

a guest
Aug 17th, 2019
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
  2.  
  3. render() {
  4. return (
  5. <Router>
  6. <Switch>
  7. <Route exact path="/" render={props => <Table stu={this.state} />} />
  8. <Route
  9. path={`/:id(\d+)`}
  10. render={props => <Detail data={this.state} />}
  11. />
  12. </Switch>
  13. </Router>
  14. );
  15. }
RAW Paste Data