Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support with react router #53

Open
anandjaisy opened this issue Aug 28, 2021 · 0 comments
Open

Support with react router #53

anandjaisy opened this issue Aug 28, 2021 · 0 comments

Comments

@anandjaisy
Copy link

How can I make this work with react-router??

A sample code as below, does it is possible to make it work with Link instead of href

<Link to="/#section_1" href="#section_1" className="text-white font-normal hover:bg-pink-600 px-3 py-2 rounded-md" aria-current="page">Product</Link>
<Link to="/#section_2" href="#section_2" className="text-white font-normal hover:bg-pink-600 hover:text-white px-3 py-2 rounded-md">Customers</Link>
 <Link to="/#section_3" href="#section_3" className="text-white font-normal hover:bg-pink-600 hover:text-white px-3 py-2 rounded-md">About</Link>
<Link to="/#section_4" href="#section_4" className="text-white font-normal hover:bg-pink-600 hover:text-white px-3 py-2 rounded-md">Contact us</Link>
<Link to="/#section_5" href="#section_5" className="text-white font-normal hover:bg-pink-600 hover:text-white px-3 py-2 rounded-md">Blog</Link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant