1import React from "react";
2import ReactDOM from "react-dom";
3import { BrowserRouter, Route } from "react-router-dom";
4const AppRouter = () => (
5 <BrowserRouter>
6 <Route path='/:parameter1/:parameter2/:parameter3' render={(props) => <App {...props} />} />
7 </BrowserRouter>
8);
9const App = (props) => {
10 const { parameter1, parameter2, parameter3 } = props.match.params;
11 return (
12 <div>
13 First: {parameter1} <br />
14 Second: {parameter2} <br />
15 Third: {parameter3} <br />
16 </div>
17 );
18};
19ReactDOM.render(<AppRouter />, document.getElementById("root"));