Table of Contents

React - State

About

This page is about UI State in React.

React

Local

The Local state to a component in react is known as:

Global

The global state is known as context.

You can also implement your own with a High Order Component

Shared

Props

props are:

Library

React does not persist:

It's let to a state management library.

State management library aims to implement logging, hot reloading, time travel, universal apps, record and replay.

A state management library will trace every mutation to the action that caused it. You can record user sessions and reproduce them just by replaying every action.

Redux

Redux evolves the ideas of Flux, but avoids its complexity by taking cues from Elm.

Others

1)