Skip to content

Commit 85ad824

Browse files
authored
docs(readme): fix store reference in example [skip ci]
Fixes a reference typo under "State stores may have arbitrary structure and they may be mutated in any syntactically valid way."
1 parent 7867c90 commit 85ad824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const user = store({
117117
firstName: 'Bob',
118118
lastName: 'Smith',
119119
get name() {
120-
return `${user.firstName} ${user.lastName}`;
120+
return `${user.profile.firstName} ${user.profile.lastName}`;
121121
},
122122
},
123123
hobbies: ['programming', 'sports'],

0 commit comments

Comments
 (0)