'How to use react route with href
I tried this way and the problem is as follows...
Solution 1:[1]
You are not linking it properly.
Try this:
<a href=`page/${person.id}` classaName="scam-title_link"></a>
Or use the Link tag provide by react-router-dom:
import {Link} from "react-router-dom";
<Link to=`page/${person.id}`>WHATEVER YOU WANT TO ADD HERE!</Link>
Check this reference for further understanding.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Zeeshan |
