1.2.0 • Published 7 months ago
redux-setup-package v1.2.0
Redux Setup Package
This is my first Redux setup package, now available on npm. It provides a pre-configured Redux setup for your React applications, making it easy to integrate Redux into your projects.
Features
Easily accessible
store
andpersistor
that can be added with the root tag in yourapp.js
orindex.js
file in React.const reduxSetup = require('redux-setup-package/index')
.const {store,persistor,getUserList} = reduxSetup
.A
getUserList
method that can be dispatched to fetch user data. Example:store.dispatch(getUserList());
Access to the live state of the store using
const storeLiveState = store.getState();
Pre-configured with essential Redux middleware:
- Logger: Provides detailed logs for Redux actions.
- Redux-saga: For handling asynchronous actions and side effects.
- Redux-persist: For persisting your Redux store across page reloads.
Installation
To install this package in your project, use npm:
npm install redux-setup-package