Skip to content

Commit 8da53ec

Browse files
toto8514toto8514
authored andcommitted
1.0.0-alpha.4
1 parent 04f5976 commit 8da53ec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In the [Reactjs docs](https://reactjs.org/docs/hooks-custom.html) a nice paragra
2525
Redhooks does not use any third party library, it only depends on the new Hooks and the Context API.
2626
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.
2727
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.
2929

3030
# Basic Example
3131

@@ -218,9 +218,9 @@ export default connect(mapStateToProp)(ReadFromStore);
218218
# Apply Middleware
219219

220220
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.
222222

223-
## Custom middlware - Logger Example
223+
## Custom middleware - Logger Example
224224

225225
```js
226226
const logger = store => next => action => {
@@ -369,7 +369,7 @@ ReactDOM.render(<App />, rootElement);
369369
createStore(reducer, [opts])
370370
```
371371
`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.
373373
* The `opts` optional argument is an object which allows you to pass a `preloadedState`, `initialAction` and `middlewares`.
374374
> The store is ready after the Provider is mounted, an `onload` event will be triggered at that time.
375375
@@ -535,7 +535,7 @@ Following few open source projects implemented with `redux` have been migrated t
535535
* Shopping Cart: [Sandbox](https://codesandbox.io/s/5yn1258y4l)
536536
* TodoMVC: [Sandbox](https://codesandbox.io/s/7jyq991p90)
537537
* Tree-View: [Sandbox](https://codesandbox.io/s/rmw98onnlp)
538-
* Saga-Middlware: [Sandbox](https://codesandbox.io/s/48pomo7rx7)
538+
* Saga-Middleware: [Sandbox](https://codesandbox.io/s/48pomo7rx7)
539539

540540
# License
541541

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redhooks",
3-
"version": "1.0.0-alpha.3",
3+
"version": "1.0.0-alpha.4",
44
"description": "Predictable state container for React apps written using Hooks.",
55
"main": "./build/index.js",
66
"module": "./build/es/index.js",

0 commit comments

Comments
 (0)