Currently, I have been able to get the data into my component using
let {id} = useParams(); And when I call
{id} within my component, I get the id from the browser,s url. I however need it to enable me fetch data from my db
I have tried
const getData = () => { axios.get(`/API/joindiscussion/` + {id}, { //do something }): } But it didn't work