You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ There are a few low-level APIs that we use internally that may also prove useful
58
58
-[`useResolvedPath`](#useresolvedpath) - resolves a relative path against the current [location](#location)
59
59
-[`useHref`](#usehref) - resolves a relative path suitable for use as a `<a href>`
60
60
-[`useLocation`](#uselocation) and [`useNavigationType`](#usenavigationtype) - these describe the current [location](#location) and how we got there
61
-
-[`useLinkClickHandler`](#uselinkclickhandler) - returns an event handler to for navigation when building a custom `<Link>` in `react-router-dom`
62
-
-[`useLinkPressHandler`](#uselinkpresshandler) - returns an event handler to for navigation when building a custom `<Link>` in `react-router-native`
61
+
-[`useLinkClickHandler`](#uselinkclickhandler) - returns an event handler for navigation when building a custom `<Link>` in `react-router-dom`
62
+
-[`useLinkPressHandler`](#uselinkpresshandler) - returns an event handler for navigation when building a custom `<Link>` in `react-router-native`
63
63
-[`resolvePath`](#resolvepath) - resolves a relative path against a given URL pathname
64
64
65
65
### Search Parameters
@@ -411,7 +411,7 @@ interface NavLinkProps
411
411
412
412
A `<NavLink>` is a special kind of [`<Link>`](#link) that knows whether or not it is "active". This is useful when building a navigation menu such as a breadcrumb or a set of tabs where you'd like to show which of them is currently selected. It also provides useful context for assistive technology like screen readers.
413
413
414
-
By default, an `active` class is added to a `<NavLink>` component when it is active. This provides the same simple styling mechanism for most users who are upgrading from v5. One difference as of `v6.0.0-beta.3` is that `activeClassName` and `activeStyle` have been removed from `NavLinkProps`. Instead, you can pass a function to either `style` or `className` that will allow you to customize the inline styling or the class string based on the component's active state. you can also pass a function as children to customize the content of the `<NavLink>` component based on their active state, specially useful to change styles on internal elements.
414
+
By default, an `active` class is added to a `<NavLink>` component when it is active. This provides the same simple styling mechanism for most users who are upgrading from v5. One difference as of `v6.0.0-beta.3` is that `activeClassName` and `activeStyle` have been removed from `NavLinkProps`. Instead, you can pass a function to either `style` or `className` that will allow you to customize the inline styling or the class string based on the component's active state. You can also pass a function as children to customize the content of the `<NavLink>` component based on their active state, specially useful to change styles on internal elements.
415
415
416
416
```tsx
417
417
import*asReactfrom"react";
@@ -1018,7 +1018,7 @@ declare function useLinkClickHandler<
1018
1018
1019
1019
</details>
1020
1020
1021
-
The `useLinkClickHandler` hook returns a click event handler to for navigation when building a custom `<Link>` in `react-router-dom`.
1021
+
The `useLinkClickHandler` hook returns a click event handler for navigation when building a custom `<Link>` in `react-router-dom`.
0 commit comments