react js router
npm install react-router-dom
react router
// npm install react-router-dom
// yarn add react-router-dom
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
react router
import {
BrowserRouter,
Switch,
Route,
Link,
useRouteMatch,
useParams
} from "react-router-dom";
ReactDOM.render(
<BrowserRouter>
<React.StrictMode>
<Switch>
<Route exact path="/" component={React_chat_app} />
<Route exact path='/:topicId' component={component0}/>
<Route exact path="/your-url" component={component1} />
<Route component={component2} />
</Switch>
</React.StrictMode></BrowserRouter>,
document.getElementById('demo')
);
router react
npm install -g create-react-app
create-react-app demo-app
cd demo-app
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us