Skip to content

Commit a18e8a9

Browse files
committed
Update React docs links
1 parent f9a0de3 commit a18e8a9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

docs/api/hooks.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: 'API > Hooks: the `useSelector` and `useDispatch` hooks`'
1010

1111
# Hooks
1212

13-
React's new ["hooks" APIs](https://reactjs.org/docs/hooks-intro.html) give function components the ability to use local component state, execute side effects, and more. React also lets us write [custom hooks](https://reactjs.org/docs/hooks-custom.html), which let us extract reusable hooks to add our own behavior on top of React's built-in hooks.
13+
React's ["hooks" APIs](https://react.dev/reference/react#) give function components the ability to use local component state, execute side effects, and more. React also lets us write [custom hooks](https://react.dev/learn/reusing-logic-with-custom-hooks#extracting-your-own-custom-hook-from-a-component), which let us extract reusable hooks to add our own behavior on top of React's built-in hooks.
1414

1515
React Redux includes its own custom hook APIs, which allow your React components to subscribe to the Redux store and dispatch actions.
1616

@@ -373,7 +373,7 @@ export const CounterComponent = ({ value }) => {
373373
}
374374
```
375375

376-
When passing a callback using `dispatch` to a child component, you may sometimes want to memoize it with [`useCallback`](https://reactjs.org/docs/hooks-reference.html#usecallback). _If_ the child component is trying to optimize render behavior using `React.memo()` or similar, this avoids unnecessary rendering of child components due to the changed callback reference.
376+
When passing a callback using `dispatch` to a child component, you may sometimes want to memoize it with [`useCallback`](https://react.dev/reference/react/useCallback). _If_ the child component is trying to optimize render behavior using `React.memo()` or similar, this avoids unnecessary rendering of child components due to the changed callback reference.
377377

378378
```jsx
379379
import React, { useCallback } from 'react'

docs/introduction/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'react-lite-youtube-embed/dist/LiteYouTubeEmbed.css'
1313

1414
# Getting Started with React Redux
1515

16-
[React Redux](https://github.com/reduxjs/react-redux) is the official [React](https://reactjs.org/) UI bindings layer for [Redux](https://redux.js.org/). It lets your React components read data from a Redux store, and dispatch actions to the store to update state.
16+
[React Redux](https://github.com/reduxjs/react-redux) is the official [React](https://react.dev/) UI bindings layer for [Redux](https://redux.js.org/). It lets your React components read data from a Redux store, and dispatch actions to the store to update state.
1717

1818
## Installation
1919

docs/tutorials/quick-start.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ hide_title: true
1818
:::info Prerequisites
1919

2020
- Familiarity with [ES6 syntax and features](https://www.taniarascia.com/es6-syntax-and-feature-overview/)
21-
- Knowledge of React terminology: [JSX](https://reactjs.org/docs/introducing-jsx.html), [State](https://reactjs.org/docs/state-and-lifecycle.html), [Function Components, Props](https://reactjs.org/docs/components-and-props.html), and [Hooks](https://reactjs.org/docs/hooks-intro.html)
21+
- Knowledge of React terminology: [JSX](https://react.dev/learn/writing-markup-with-jsx), [State](https://react.dev/learn/state-a-components-memory), [Function Components, Props](https://react.dev/learn/passing-props-to-a-component), and [Hooks](https://react.dev/reference/react#)
2222
- Understanding of [Redux terms and concepts](https://redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow)
2323

2424
:::

docs/tutorials/typescript.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hide_title: true
1717

1818
:::info Prerequisites
1919

20-
- Knowledge of React [Hooks](https://reactjs.org/docs/hooks-intro.html)
20+
- Knowledge of React [Hooks](https://react.dev/reference/react#)
2121
- Understanding of [Redux terms and concepts](https://redux.js.org/tutorials/fundamentals/part-2-concepts-data-flow)
2222
- Understanding of TypeScript syntax and concepts
2323

docs/using-react-redux/accessing-store.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ connected components, or access the store directly. Here are some examples of ho
2222

2323
## Understanding Context Usage
2424

25-
Internally, React Redux uses [React's "context" feature](https://reactjs.org/docs/context.html) to make the
25+
Internally, React Redux uses [React's "context" feature](https://react.dev/learn/passing-data-deeply-with-context) to make the
2626
Redux store accessible to deeply nested connected components. As of React Redux version 6, this is normally handled
2727
by a single default context object instance generated by `React.createContext()`, called `ReactReduxContext`.
2828

0 commit comments

Comments
 (0)