Skip to content
Discussion options

You must be logged in to vote

Hi @shyamajp

This is a bit of a tricky situation for us honestly. There are many different React based routers people can use. There's React Router, Reach Router, NextJs Link and Gatsby Link just off the top of my head.

They all kind of work slightly differently and all have a bunch of different versions and APIs to support.

We want Paste to be used in as many different applications as possible and as such we can't possible cater for any one router.

What we have done is just export a style HTML anchor element. This way you can use it in any way you need to based on the router you're using. I know this means you need to do some work to wire it up, but honestly this is the most flexible way…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TheSisb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants