Skip to content

Anchor: History API navigation #758

Answered by SiTaggart
vankhoawin asked this question in Ideas
Discussion options

You must be logged in to vote

Hi @vnguyen94, you're right we don't want the presentational component to be tied to any particular routing implementation. Ideas and preferences change over time, and we're really only concerned with the component being an HTML anchor element that has certain styles attached to it. So we leave the routing library of choice up to the consumer.

I am curious though on the preference of the Paste anchor being the accommodator of the routing library.

As an example react router has 2 mechanisms you could hook into, that accommodates other React components to be used with the library. Firstly is the Link component takes a component prop, where you can pass it a styled component. https://reactro…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vankhoawin
Comment options

Answer selected by vankhoawin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants