npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hutechtechnical/earum-culpa-cum-possimus

v1.0.0

Published

Redux is a JS library for predictable and maintainable global state management.

Downloads

26

Maintainers

khaipham1001khaipham1001

Keywords

fromes7stylesdescriptorObservableamazonkeycryptapiArray.prototype.findLastduplexjQueryshellnumberregular expressionlessformatlesscssmkdirsslotArrayBufferterminalinspectrateFloat64Arrayfunctionsstablea11ysetPrototypeOfPromiseECMAScript 3Array.prototype.includesfast-deep-copydefinePropertymixinsbrowsernegativereal-timestoragegatewayisConcatSpreadable[[Prototype]]ansitscore-jskarmaregexdommatchesArray.prototype.filtershebangswfdeep-copysafe$.extendmapreduceRegExp.prototype.flagsairbnbtelephonestdlibtestttyredactarktypeRFC-6455cliforEachgetintrinsicdeterministicomitlinewrapObject.fromEntriesreadablefswordwrapencryptionsortperformantes2016deletesymbolsjwtTypeBoxthroatvalidexpressparentlintmkdirarraybuffercallboundfind-upSetpredictablequeueMicrotaskpathmodulebreakentriesestreerandomtostringtagwhatwgemojiimportdataviewmatchtypesidleinstallerhookscharacterutilform-validationparentsoncegradients css3eslintpluginreadablestreampropertiesIteratorSymbolenvES7command-linecollection.es6parserwarningcallbindECMAScript 6intrinsicjapanesejsonreact-hook-formflattenconnectObject.valuesconcatMapshamprunetypedarraywatchuuidstreams2moveRxJSdeephasOwnPropertyObject.definePropertyreusepropertyTypedArraysettingsvaluefpstslibUnderscorefastifyworkspace:*reduxes2018replayloadingunicodepackage.jsonstarterrgbES2020256channelresolvesnscoercibleformsweaksetmatchAllreact-hookssyntaxfixed-widthbufferfulljschailazyhashmkdirpcolumnbannercircularstate-0ESnextECMAScript 2018ES2022extensiondebugoutputassertUint8ClampedArraydatastructurebrowserslistextraimmutablearraysmime-dbES2023cacheutil.inspectwidthReactiveXAsyncIteratortypeofmake dirupformcloudformationhookformArrayBuffer.prototype.slicehttpclass-validatorlockfileRxtypanionESstringifytraversefastclonetapetypescriptWeakSetsetImmediateinvariantindicatorwrapArray.prototype.findLastIndexsameValueZerofast-copytimeebsdropArray.prototype.flatMapperformancetypedpackage managerflagiterationnodejssuperagentvalidationreducetrimEndclasseses2015electronspinnervestpositiveaccessibilitytypeerrorlastajaxprefixcontainsmiddlewareargparseelasticachegraphqlECMAScript 2023compile lessesbundlercss-in-jsdom-testing-librarymonorepoprettycheckremovegetlruloadbalancingargumenttestingredux-toolkitcssnested cssrfc4122configcryptoenvironmentartnegative zeromomentastwatchFilehas-ownthrottlefastprivate datacss nestingstatelessbcryptargvwhichObservablesdeepclonewatchingkoreanES2016colorcomputed-typesinternal slotES8BigInt64ArrayArrayopentaskTypeScriptmaptyped arrayfolderes-shim APIcopytoolkitmrupreserve-symlinksgetterassertssymlinksUint32ArrayArray.prototype.flatWebSocketjoiuninstallsyntaxerrorWebSocketsInt32ArrayeventEmitterworkflowdescriptorsdirsorteddatecorslocationkeyssharedfiltersequencefunctionqueueguidhotajvbeanstalkroutingbddcommandlinkwritableawsincludescss variableless compilerapollodescriptionstyleguideECMAScript 2019extendtype__proto__httpshardlinksES2015asciicloudfrontes-shimschineseless.jses2017patchconfigurablespinnerschromiumobjectoptionscheme-validationrdsiteratortakexhrObjectquerystringhasReflect.getPrototypeOfgetOwnPropertyDescriptorgroupserializefastcopyprotojsxstringtddArray.prototype.flattenownconsumemochacharactersflatsuperstructrequirebootstrap csses5l10nargsincolumnses6Int8ArrayObject.getPrototypeOfconsolemimeauthmimetypesfile systemtrimStartpasswordECMAScript 2022reactUint16ArraydayjstrimLeftexeceslintECMAScript 7ecmascriptWeakMapgdprECMAScript 2015io-tsArray.prototype.containstypedarraysprototypetoArrayautoprefixermobilehigher-orderreact-testing-libraryrangeerrorURLglobrm -rffindLastpyyamlutilitywebeverynamespromisess3yamlbluebirdloggerfast-clonestreamselbhasOwnObject.isminimaldynamodbimportexportbootstrap lessinferencejsdiffrequestsymbolliveBigUint64Array0streamawesomesaucerecursivepostcssES6someUint8ArrayES5propdiffgradients csscensoreventsjasminextermpnpm9YAMLclienttypesafeshrinkwrapfsevents

Readme

Redux

Redux is a JS library for predictable and maintainable global state management.

It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.

You can use Redux together with React, or with any other view library. The Redux core is tiny (2kB, including dependencies), and has a rich ecosystem of addons.

Redux Toolkit is our official recommended approach for writing Redux logic. It wraps around the Redux core, and contains packages and functions that we think are essential for building a Redux app. Redux Toolkit builds in our suggested best practices, simplifies most Redux tasks, prevents common mistakes, and makes it easier to write Redux applications.

GitHub Workflow Status npm version npm downloads @hutechtechnical/earum-culpa-cum-possimus channel on discord

Installation

Create a React Redux App

The recommended way to start new apps with React and Redux Toolkit is by using our official Redux Toolkit + TS template for Vite, or by creating a new Next.js project using Next's with-@hutechtechnical/earum-culpa-cum-possimus template.

Both of these already have Redux Toolkit and React-Redux configured appropriately for that build tool, and come with a small example app that demonstrates how to use several of Redux Toolkit's features.

# Vite with our Redux+TS template
# (using the `degit` tool to clone and extract the template)
npx degit @hutechtechnical/earum-culpa-cum-possimusjs/@hutechtechnical/earum-culpa-cum-possimus-templates/packages/vite-template-@hutechtechnical/earum-culpa-cum-possimus my-app

# Next.js using the `with-@hutechtechnical/earum-culpa-cum-possimus` template
npx create-next-app --example with-@hutechtechnical/earum-culpa-cum-possimus my-app

We do not currently have official React Native templates, but recommend these templates for standard React Native and for Expo:

  • https://github.com/rahsheen/react-native-template-@hutechtechnical/earum-culpa-cum-possimus-typescript
  • https://github.com/rahsheen/expo-template-@hutechtechnical/earum-culpa-cum-possimus-typescript
npm install @@hutechtechnical/earum-culpa-cum-possimusjs/toolkit react-@hutechtechnical/earum-culpa-cum-possimus

For the Redux core library by itself:

npm install @hutechtechnical/earum-culpa-cum-possimus

For more details, see the Installation docs page.

Documentation

The Redux core docs are located at https://@hutechtechnical/earum-culpa-cum-possimus.js.org, and include the full Redux tutorials, as well usage guides on general Redux patterns:

The Redux Toolkit docs are available at https://@hutechtechnical/earum-culpa-cum-possimus-toolkit.js.org, including API references and usage guides for all of the APIs included in Redux Toolkit.

Learn Redux

Redux Essentials Tutorial

The Redux Essentials tutorial is a "top-down" tutorial that teaches "how to use Redux the right way", using our latest recommended APIs and best practices. We recommend starting there.

Redux Fundamentals Tutorial

The Redux Fundamentals tutorial is a "bottom-up" tutorial that teaches "how Redux works" from first principles and without any abstractions, and why standard Redux usage patterns exist.

Help and Discussion

The #@hutechtechnical/earum-culpa-cum-possimus channel of the Reactiflux Discord community is our official resource for all questions related to learning and using Redux. Reactiflux is a great place to hang out, ask questions, and learn - please come and join us there!

Before Proceeding Further

Redux is a valuable tool for organizing your state, but you should also consider whether it's appropriate for your situation. Please don't use Redux just because someone said you should - instead, please take some time to understand the potential benefits and tradeoffs of using it.

Here are some suggestions on when it makes sense to use Redux:

  • You have reasonable amounts of data changing over time
  • You need a single source of truth for your state
  • You find that keeping all your state in a top-level component is no longer sufficient

Yes, these guidelines are subjective and vague, but this is for a good reason. The point at which you should integrate Redux into your application is different for every user and different for every application.

For more thoughts on how Redux is meant to be used, please see:

Basic Example

The whole global state of your app is stored in an object tree inside a single store. The only way to change the state tree is to create an action, an object describing what happened, and dispatch it to the store. To specify how state gets updated in response to an action, you write pure reducer functions that calculate a new state based on the old state and the action.

Redux Toolkit simplifies the process of writing Redux logic and setting up the store. With Redux Toolkit, the basic app logic looks like:

import { createSlice, configureStore } from '@@hutechtechnical/earum-culpa-cum-possimusjs/toolkit'

const counterSlice = createSlice({
  name: 'counter',
  initialState: {
    value: 0
  },
  reducers: {
    incremented: state => {
      // Redux Toolkit allows us to write "mutating" logic in reducers. It
      // doesn't actually mutate the state because it uses the Immer library,
      // which detects changes to a "draft state" and produces a brand new
      // immutable state based off those changes
      state.value += 1
    },
    decremented: state => {
      state.value -= 1
    }
  }
})

export const { incremented, decremented } = counterSlice.actions

const store = configureStore({
  reducer: counterSlice.reducer
})

// Can still subscribe to the store
store.subscribe(() => console.log(store.getState()))

// Still pass action objects to `dispatch`, but they're created for us
store.dispatch(incremented())
// {value: 1}
store.dispatch(incremented())
// {value: 2}
store.dispatch(decremented())
// {value: 1}

Redux Toolkit allows us to write shorter logic that's easier to read, while still following the original core Redux behavior and data flow.

Logo

You can find the official logo on GitHub.

Change Log

This project adheres to Semantic Versioning. Every release, along with the migration instructions, is documented on the GitHub Releases page.

License

MIT