GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - github1/redux-modules: An implementation of the redux modules pattern to modularize redux reducers, middleware and action creators

BranchesTags
Open more actions menu

Latest commit

 

History

81 Commits
81 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.tool-versions
.tool-versions
 
 
.travis.yml
.travis.yml
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

@github1/redux-modules

An implementation of the redux modules pattern to modularize redux reducers, middleware and action creators

This package provides utilities for encapsulating redux components such as reducer, middleware, actions, preloadedState in a strongly types structure which makes it simpler to build, organize and reuse logic.

build status npm version npm downloads

Install

npm install @github1/redux-modules --save

Usage

import { createModule } from '@github1/redux-modules';

const store = createModule('myModule')
  .reduce((state: MyState, action: MyActionTypes) => {
    if ('Increment' === action.type) {
      return { ...state, count: state.count + 1 };
    }
    return state;
  })
  .preloadedState({
    count: 0,
  })
  .asStore();

License

MIT

About

An implementation of the redux modules pattern to modularize redux reducers, middleware and action creators

Topics

reduxredux-modules

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.