I'm using react-select for my web application I have a dropdown with autofill, when I click on input I will see a list of all the car items that come from API but I need to enter the needed one and redirect to that details page. Should I create route for this ?
When I click on BMW I need to go to bmw detials page. if it was just simple car item I would create a button under and Link
<Link className='btn-item auction-btn mr-2' to={`/carDetails/${item.id}`}>Details</Link>.
with routing:
<Route
exact
path="/carDetails/:id"
render={({ match }) => (
<CarDetails item={data.find((item) => String(item.id) === String(match.params.id))} />
)}
/>
but this is react-select library and it's component that I have to filter and than to go to that page I need ..
