Redux and the State ADT
Course on egghead by Ian Hofmann-Hicks
- 1 h 38 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 26
- Lessons
- Dec 2018
- Published19 Dec 2018
About this course
At a high level Redux is just a dispatching system, sitting atop a finite state machine, driving our application state. It just so happens that the State ADT is good at modeling a finite state machine. It allows us to represent our stateful transactions in discrete, easily composed transactions. We can create complicated stateful transitions by composing many simple transitions into one state transaction. By using the State ADT, we should be able to model all of our application state transitions and provide a single reducer function to Redux that integrates with our state machine model. We’ll put this theory to the test by building a Memory type game called “Anger The Bunny”. We start of by defining our state transitions using the State ADT, starting with simple, discrete transactions and using them to create the complex transitions typical of any game.
What it covers
- 1Introduction to using the State ADT with Redux
- 2Define Discrete State Transitions using the State ADT
- 3Combine State Dependent Transactions with the State ADT
- 4Transition a Stateful ADT with Outside Input
- 5Compose Simple State ADT Transitions into One Complex Transaction
- 6Read and Transform Values from a State ADT’s State
- 7Transition State based on Existing State using the State ADT
- 8Combine Multiple State ADT Instances with the Same Input
- 9Generate Randomness Using the State ADT
- 10Use a Pure RNG with the State ADT to Select an Element from State
- 11Multiply Two Arrays over a Function in JavaScript
- 12Draw Items from One JavaScript Array to Another using a Pair ADT
- 13Randomly Pull an Item from an Array with the State ADT
- 14Pull Many Random Numbers in a Single State ADT Transaction
- 15Adapt Redux Actions/Reducers for Use with the State ADT
- 16Create State ADT Based Reducers
- 17Combine Multiple State ADT Based Redux Reducers
- 18Initialize Redux Application State Using The State ADT
- 19Debug a Functional JavaScript composeK Flow
- 20Create a Redux Store for Use with a State ADT Based Reducer
- 21Connect State ADT Based Redux Actions to a React Application
- 22Create Redux Middleware to Dispatch Multiple Actions
- 23Create Redux Middleware to Dispatch Actions with the Async ADT
- 24Dispatch Multiple Asynchronous Redux Actions with Arguments
Show 2 more lessons
- 25Extend State ADT Based Transitions after React/Redux Integration
- 26Dispatch a Single State ADT Based Redux Action
Similar state management courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.