How to pass params into link using React router v6?
问题 This is my main section class where all routes to the links is kept export default class Section extends React.Component { render() { return ( <div style={{backgroundColor:"white"}}> <Routes> <Route path="/" element={<Home/>} /> <Route path="/discover" element={<Discover/>} /> <Route path="/shop/makeup" element={<Makeup/>} /> <Route path="/home/:id" element={<DetailsPage/>} /> </Routes> </div> )}} This is my card page which is getting data from the context. import React from 'react'; import