Closed ashwiniraj096 closed 2 months ago
6.24.1
Following along with the Tutorial. Client side routing made with Link element in root.jsx causing issue.
contacts/:id URL should load Contact Page
contacts/:id URL is routed to Error Page instead of Contact Page
The error is Link is not defined. Did you remember to import it?
Link is not defined
import { Link } from 'react-router-dom'
https://reactrouter.com/en/main/components/link
What version of React Router are you using?
6.24.1
Steps to Reproduce
Following along with the Tutorial. Client side routing made with Link element in root.jsx causing issue.
Expected Behavior
contacts/:id URL should load Contact Page
Actual Behavior
contacts/:id URL is routed to Error Page instead of Contact Page