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

NavLink: Add support for className and style props as functions given the active state #7983

Merged
merged 1 commit into from Sep 1, 2021

Conversation

chaance
Copy link
Collaborator

@chaance chaance commented Aug 31, 2021

This is an alternative API that will provide a low level solution to the problem described in #7194

In RR v6, we plan to drop support for activeClassName and activeStyle and use the function solution as a singular API for either styled or un-styled links. Consumers can always add these props back by abstracting NavLink if they prefer the old API, but this will allow us to simplify the code and API surface level internally while providing a more powerful lower-level solution.

Copy link
Member

@mjackson mjackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@chaance chaance merged commit b3c7d99 into main Sep 1, 2021
@chaance chaance deleted the navlink-style-props branch September 1, 2021 16:25
brophdawg11 pushed a commit that referenced this pull request Mar 27, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants