diff --git a/README.md b/README.md index 8245bbe9..b72ff149 100644 --- a/README.md +++ b/README.md @@ -39,18 +39,17 @@ npm install easy-peasy
-## Fly like an eagle +## Fly like an eagle 🦅 **Create your store** ```javascript const store = createStore({ - todos: { - items: ['Create store', 'Wrap application', 'Use store'], - add: action((state, payload) => { - state.items.push(payload); - }), - }, + todos: ['Create store', 'Wrap application', 'Use store'], + + addTodo: action((state, payload) => { + state.todos.push(payload); + }), }); ``` @@ -70,14 +69,14 @@ function App() { ```javascript function TodoList() { - const todos = useStoreState((state) => state.todos.items); - const add = useStoreActions((actions) => actions.todos.add); + const todos = useStoreState((state) => state.todos); + const addTodo = useStoreActions((actions) => actions.addTodo); return (
+## Core Team 🛠 + +
+
+ + Jørn A. Myrland + + |
+
+
+ + Sean Matheson + + |
+
+ ## Our Sponsors ❤️ We have only but great appreciation to those who support this project. If you