View on GitHub

reading-notes

CodeFellows Class Reading Notes

Questions:

Compare and Contrast Redux Toolkit with Redux “Ducks”

Redux Toolkit is a collection of libraries (ie, a toolkit), whereas Ducks is a modular pattern that collocates actions, action types and reducers.

Source: medium.com/@matthew.holman/what-is-redux-ducks-46bcb1ad04b7

What is the principle advantage of Redux Toolkit

Compatibility - Redux Toolkit provides a number of functions that can simplifying working with Redux. It covers many standard cases by default, but can still be configured for more specific tasks. The libraries included in the collection are widely used (and therefore well tested) and they work well together.

Source: blog.codecentric.de/en/2020/02/simplifying-redux-with-the-redux-toolkit/


Definitions

Term Definition Source
redux toolkit slices The ‘createSlice’ function accepts an initial state, an object full of reducer functions, and a “slice name”, and automatically generates action creators and action types that corresopond o the reducers and state redux-toolkit.js.org/api/createSlice
namespace In general - a set of signs (aka names) that are used to identify and refer to objects of various kinds en.wikipedia.org/wiki/Namespace

Home