How do you explain the term Predictable State Container in simple words?

I know about React, Redux etc.. but when someone asks you what exactly is "Predictable State Container" in Redux, what should be the answer?

Write your answer…

It's a "state container" because it holds all the state of your application. It doesn't let you change that state directly, but instead forces you to describe changes as plain objects called "actions". Actions can be recorded and replayed later, so this makes state management predictable. With the same actions in the same order, you're going to end up in the same state.

Show all replies

My answer can be silly, but Redux concepts help to explain and understanding the meaning of predictable in this context. That means that you always know from where the state comes from, (from the store), who will be able to update it, (Actions).

Reply to this…

Mark Wilson's photo

Mark Wilson


Talk is cheap. Show me the code.



Joined on

Dec 18, 2015

Welcome to Hashnode
the dev community

The programming forum to discuss topics broader than bugs and issues, write and share knowledge and connect with the best developers.