SHARE
TWEET

Untitled

a guest Aug 17th, 2019 69 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top