Skip to content

Commit 5a55a9e

Browse files
committed
docs (readme): fix example state
1 parent d67f42c commit 5a55a9e

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
@@ -51,7 +51,7 @@ import { easyComp } from 'react-easy-state'
5151

5252
class Hello extends Component {
5353
state = {
54-
name: 'World!'
54+
name: 'World'
5555
}
5656

5757
// this is bound to the component, so it can be safely passed as a callback
@@ -112,7 +112,7 @@ import { easyComp, easyStore } from 'react-easy-state'
112112

113113
// this creates a global state store
114114
const store = easyStore({
115-
name: 'Hello',
115+
name: 'World',
116116
// this is bound to the object, so it can be safely passed as a callback
117117
setName (ev) {
118118
this.name = ev.target.value

0 commit comments

Comments
 (0)