Skip to content

Commit 88daab8

Browse files
authored
typos (#8763)
1 parent d6c8d9e commit 88daab8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- markivancho
3636
- mcansh
3737
- mfijas
38+
- morleytatro
3839
- noisypigeon
3940
- paulsmithkc
4041
- petersendidit

docs/api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ There are a few low-level APIs that we use internally that may also prove useful
5858
- [`useResolvedPath`](#useresolvedpath) - resolves a relative path against the current [location](#location)
5959
- [`useHref`](#usehref) - resolves a relative path suitable for use as a `<a href>`
6060
- [`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`
6363
- [`resolvePath`](#resolvepath) - resolves a relative path against a given URL pathname
6464

6565
### Search Parameters
@@ -411,7 +411,7 @@ interface NavLinkProps
411411

412412
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.
413413

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.
415415

416416
```tsx
417417
import * as React from "react";
@@ -1018,7 +1018,7 @@ declare function useLinkClickHandler<
10181018

10191019
</details>
10201020

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`.
10221022

10231023
```tsx
10241024
import {

0 commit comments

Comments
 (0)