skip to Main Content

Dynamic routes ReactJS

Here is the component to render routes: import { useParams } from 'react-router-dom'; function Profile() { const { nickname } = useParams(); return <h1> {nickname} Profile Page</h1>; } export default Profile; Here is routes import Home from '../pages/Home'; import Following…

VIEW QUESTION
Back To Top
Search