Skip to content

Commit

Permalink
fix: typos in FAQ files (#8354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kirsche committed Nov 18, 2021
1 parent 3ababa8 commit b8d4b8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FAQ.md
Expand Up @@ -112,7 +112,7 @@ You can see a demonstration of how this works in this [CodeSandbox demo](https:/

If you need to pass props to the component rendered by a `<Route>`, you should use the `<Route>`'s `render` prop. The `render` prop can take an inline function as its value, which means that you can pass variables from the local scope to the component that the `<Route>` renders.

**Note:** The `render` function receives a `props` argument, which you should pass on to the element that your `render` function returned. If you do not do this, the component that you are rendering will not have acccess to the router variables (`match`, `location`, and `history`).
**Note:** The `render` function receives a `props` argument, which you should pass on to the element that your `render` function returned. If you do not do this, the component that you are rendering will not have access to the router variables (`match`, `location`, and `history`).

```js
const App = () => {
Expand Down
1 change: 1 addition & 0 deletions contributors.yml
@@ -1 +1,2 @@
- mcansh
- kkirsche
2 changes: 1 addition & 1 deletion docs/faq.md
Expand Up @@ -212,7 +212,7 @@ function Users() {
<div>
<h1>Users</h1>
<Switch>
<Route path="/users/accont" component={Account} />
<Route path="/users/account" component={Account} />
</Switch>
</div>
);
Expand Down

0 comments on commit b8d4b8a

Please sign in to comment.