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: README.md
+3-41Lines changed: 3 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,9 @@ For React Native, import from `react-redux/native` instead.
9
9
>**Note: There is a project called “redux-react” on NPM that is completely unrelated to the official bindings. This documentation (and any other official Redux documentation) is for `react-redux`.**
10
10
11
11
-[Quick Start](#quick-start)
12
-
-[Recommended API](#recommended-api)
12
+
-[API](#api)
13
13
-[`connect`](#connect)
14
14
-[`Provider`](#provider)
15
-
-[Deprecated API](#deprecated-api)
16
-
-[`Connector`](#connector)
17
-
-[`provide`](#provide)
18
15
19
16
## Quick Start
20
17
@@ -214,7 +211,7 @@ React.render((
214
211
// );
215
212
```
216
213
217
-
## Recommended API
214
+
## API
218
215
219
216
### `connect`
220
217
@@ -246,42 +243,7 @@ See the usage example in the quick start above.
246
243
247
244
The `Provider` component takes a `store` prop and a [function as a child](#child-must-be-a-function) with your root
248
245
component. The `store` is then passed to the child via React's `context`. This is the entry point for Redux and must be
249
-
present in order to use the `Connector` component.
250
-
251
-
## Deprecated API
252
-
253
-
### `Connector`
254
-
255
-
>**Note**
256
-
>Deprecated. Use `connect()` instead.
257
-
258
-
```js
259
-
<Connector select={fn}>
260
-
{props=><MyComponent {...props} />}
261
-
</Connector>
262
-
```
263
-
264
-
Similar to `Provider`, the `Connector` expects a single [function as a child](#child-must-be-a-function) and a function
265
-
as the `select` prop. The selector function takes a single argument of the entire root store and returns an object to be
266
-
passed as properties to the child. In addition to the properties returned by the selector, a `dispatch` function is
267
-
passed to the child for dispatching actions.
268
-
269
-
It is the responsibility of a Smart Component to bind action creators to the given `dispatch` function and pass those
270
-
bound creators to Dumb Components. Redux provides a `bindActionCreators` to streamline the process of binding action
271
-
creators to the dispatch function.
272
-
273
-
We don’t recommend its use anymore because it’s not as flexible as `connect()` and has some performance implications for more complex scenarios.
274
-
275
-
### `provide`
276
-
277
-
>**Note**
278
-
>Deprecated. Use `<Provider>` instead.
279
-
280
-
```js
281
-
exportdefaultprovide(store)(MyRootComponent);
282
-
```
283
-
284
-
This higher-order component provides the same functionality as `<Provider>`. We don’t recommend it anymore because it’s less flexible than `<Provider>` and doesn’t work with [redux-devtools](http://github.com/gaearon/redux-devtools) or server rendering.
0 commit comments