Hi Guys Good Day!
I've been using react-router for almost a year now and I have some problems with it mainly because of the reason there...
For further actions, you may consider blocking this person and/or reporting abuse
Just add in your project
@types/reach__router
as dev dependency and define your page component by the next way:Yea, it throws an error in TypeScript. You have to define it that component to get rid of that error. I've read that article a few days before writing this post but they did not yet implement the API.
Hey Mark, thanks for your post! I also use Reach Router for my project. I'm going through a refactor with context API, and I experienced some issues with router url params. Post my issue here github.com/reach/router/issues/328, and hope to get some feedback from you and the community. Thank you very much!
Using the
component
prop creates a new element for every render if your using an inline function. But thanks for thecontext
tip I forgot about that feature.How can I achieve this feature(reactrouter.com/web/example/modal-...) of react-router in reach router?