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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In the [Reactjs docs](https://reactjs.org/docs/hooks-custom.html) a nice paragra
25
25
Redhooks does not use any third party library, it only depends on the new Hooks and the Context API.
26
26
You do not need to install `react-redux` to connect your components to the store because you can have access to it directly from any of your function components by calling `useStore` Redhooks api.
27
27
Hooks are not allowed within class Components, for using the store within them Redhooks exposes a HOC named `connect`.
28
-
It also supports the use of middlwares like `redux-thunk` or `redux-saga` or your custom middlware conforming to the middlware's API.
28
+
It also supports the use of middlewares like `redux-thunk` or `redux-saga` or your custom middleware conforming to the middleware's API.
As for Redux, middleware is a way to extend Redhooks with custom functionality.
221
-
Middleware are functions which receive Store's `dispatch` and `getState` as named arguments, and return a function. Redhooks supports the use of the redux's middlwares like `redux-thunk`, `redux-saga` or you migth write a custom middlware conforming to middleware API.
221
+
Middleware are functions which receive Store's `dispatch` and `getState` as named arguments, and return a function. Redhooks supports the use of the redux's middlewares like `redux-thunk`, `redux-saga` or you migth write a custom middleware conforming to middleware API.
`createStore` returns the store object to be passed to the `<Provider store={store} />`.
372
-
* The `reducer` argument might be a single reducer function, a function returned by `combineReducers` or a plain object whose values are reducre functions if your store needs multiple reducers.
372
+
* The `reducer` argument might be a single reducer function, a function returned by `combineReducers` or a plain object whose values are reducer functions if your store needs multiple reducers.
373
373
* The `opts` optional argument is an object which allows you to pass a `preloadedState`, `initialAction` and `middlewares`.
374
374
> The store is ready after the Provider is mounted, an `onload` event will be triggered at that time.
375
375
@@ -535,7 +535,7 @@ Following few open source projects implemented with `redux` have been migrated t
0 commit comments