Reactjs – useParams to get the Url id and find an item via its index in react
I have used Params to get the url of the page that I linked to it before and it was ok to this stage, but then I can't set items accordingly. const {id} = useParams(); const [item, setItem] = useState([]);…