Open Spectrevuln-sketch opened 2 years ago
It did not work for me either, maybe you should consider using the new router API, this worked for me.
Can you give an example? We're trying to bring this project up to React Router Dom v6 and the Context.js
is proving hard to pin down.
i have some project and i wanna build wp theme with create-react wptheme but route is not working i already follow some tutorial in http://michaelsoriano.com/wordpress-theme-react-part-2-routes-context/ but router still not working this my code below
in the single page
import React from 'react'
i use react-router-dom version 5.3.0