This is a small example of 'one-way data flow':
It is a self-contained app with the following parts: It tracks a number in component state, and increments the number when a button is clicked: Let's start by looking at a small React counter component. We recommend that all Redux learners should read the 'Essentials' tutorial!
See these pages to learn how to use 'modern Redux' with Redux Toolkit: It's not meant to be a production-ready project. Note that this tutorial intentionally shows older-style Redux logic patterns that require more code than the 'modern Redux' patterns with Redux Toolkit we teach as the right approach for building apps with Redux today, in order to explain the principles and concepts behind Redux.