You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,18 +59,24 @@ store.getState();
59
59
-[select(selector)](#select)
60
60
-[Prior Art](#prior-art)
61
61
62
+
---
63
+
62
64
## Introduction
63
65
64
66
Easy Peasy gives you the power of Redux and its tooling whilst avoiding the boilerplate. It allows you to create a full Redux store by defining a simple model (object) to describe your state and it's actions.
65
67
66
68
Easy Peasy outputs a Redux store, which means you can integrate with frameworks like React. Read the [integration docs](#integration-with-frameworks) below.
67
69
70
+
---
71
+
68
72
## Installation
69
73
70
74
```bash
71
75
npm install easy-peasy
72
76
```
73
77
78
+
---
79
+
74
80
## Examples
75
81
76
82
### React Todo List
@@ -79,6 +85,8 @@ A simple/naive implementation of a todo list.
79
85
80
86
https://codesandbox.io/s/7k62z0qyoq
81
87
88
+
---
89
+
82
90
## Tutorial
83
91
84
92
### Setting up your store
@@ -227,6 +235,8 @@ This was just a brief overview of how to create and interact with an Easy Peasy
227
235
228
236
Oh! And don't forget to install the [Redux Dev Tools Extension](https://github.com/zalmoxisus/redux-devtools-extension) to help visualise actions and state updates. 👍
229
237
238
+
---
239
+
230
240
## Integration with Frameworks
231
241
232
242
Below showcases how simple it is to integrate Easy Peasy with existing frameworks.
@@ -289,6 +299,8 @@ export default connect(
289
299
)(EditTodo)
290
300
```
291
301
302
+
---
303
+
292
304
## API
293
305
294
306
Below is an overview of the API exposed by Easy Peasy.
@@ -477,6 +489,8 @@ const store = createStore({
477
489
store.getState().shoppingBasket.totalPrice
478
490
```
479
491
492
+
---
493
+
480
494
## Prior art
481
495
482
496
This library was massively inspired by the following awesome projects. I tried to take the best bits I liked about them all and create this package. Huge love to all contributors involved in the below.
0 commit comments