Skip to content

Commit

Permalink
chore(docs): fix a number of typos in the docs (#8314)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockingskier committed Nov 11, 2021
1 parent e10fffe commit 1becc31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Expand Up @@ -361,7 +361,7 @@ interface NavLinkProps

</details>

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 assitive technology like screen readers.
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.

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.

Expand Down Expand Up @@ -916,7 +916,7 @@ import {
useLinkClickHandler
} from "react-router-dom";

const StyledLink = styled("a", { color: "fuschia" });
const StyledLink = styled("a", { color: "fuchsia" });

const Link = React.forwardRef(
(
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/tutorial.md
Expand Up @@ -15,7 +15,7 @@ If you're just getting started with React generally, we recommend you follow [th

We'll keep this tutorial quick and to the point. By the end you'll know the APIs you deal with day-to-day with React Router. After that, you can dig into some of the other docs to get a deeper understanding.

While building a little bookeeping app we'll cover:
While building a little bookkeeping app we'll cover:

- Configuring Routes
- Navigating with Link
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading/reach.md
Expand Up @@ -72,7 +72,7 @@ come back later and pick up where you left off.
You should be able to simply install v1.3.3 and then deploy your app.

```sh
npm install @reach/router@lastest
npm install @reach/router@latest
```

### Update route components to use hooks
Expand Down

0 comments on commit 1becc31

Please sign in to comment.