1.0.5 • Published 1 year ago

behave-react v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

React Behave

logo

Build Status Licence

Behave is a simple React Redux wrapper for both React TS & Native. The goal is to setup a redux store complete with async saga and loaders handler in less then a minute.

Setup

Installation is a one-liner once you added the library

Create the Store

In your src/store/ folder create a index.tsx file that looks like this:

import { behaveStore, poolReducer, combineReducers } from 'behave-react'

const reducers = combineReducers({ ...poolReducer() })
const { store, persistor } = behaveStore({ reducers: reducers })

export type RootState = ReturnType<typeof reducers>
export default store

Adding Reducers

As in vanilla redux you can create your own reducers

import { behaveStore, poolReducer, combineReducers } from 'behave-react'

const reducers = combineReducers({ ...poolReducer() })
const { store, persistor } = behaveStore({ reducers: reducers })

export type RootState = ReturnType<typeof reducers>
export default store
1.0.5

1 year ago

1.0.4

1 year ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

0.1.1-0.1

2 years ago

0.1.10

2 years ago

0.1.11

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.9

3 years ago

0.0.16

3 years ago

0.0.8

3 years ago

0.0.17

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago