Skip to content

Commit 3f2b460

Browse files
authored
fixed copy-paste error in README
1 parent b18a291 commit 3f2b460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ This example adds three reducer/dispatcher pairs: `inc`, `dec` and `reset`.
153153
// NameReduxState.js
154154
import { createReduxModule } from "hooks-for-redux";
155155

156-
export const [useName, { inc, add, reset }] = createReduxModule("count", 0, {
156+
export const [useCount, { inc, add, reset }] = createReduxModule("count", 0, {
157157
inc: state => state + 1,
158158
add: (state, amount) => state + amount,
159159
reset: () => 0
@@ -165,7 +165,7 @@ Now the interface supports adding 1, adding 10 and resetting the count.
165165
```jsx
166166
// App.jsx
167167
import React from "react";
168-
import { useName, inc, add, reset } from "./NameReduxState.js";
168+
import { useCount, inc, add, reset } from "./NameReduxState.js";
169169

170170
export default () => (
171171
<p>

0 commit comments

Comments
 (0)