yarn test
yarn remove react-router react-router-dom @types/react-router @types/react-router-dom
yarn add https://github.com/wu-yu-xuan/web-router.git#v0.1.0
react-router
| react-router-dom
web-router
break change: BrowserRouter
Router
issue pr!
use at you own risk!!!
if you love react concurrent mode, you can:
yarn add https://github.com/wu-yu-xuan/web-router.git#v0.2.1
and rename Switch
into TransitionSwitch
it will use useTransition
to switch from pages
, timeoutMs
5000 , , react bug