The future of the

@glrodasz

& React

state management

in JavaScript

Guillermo Rodas

Engineer at Auth0

Organizer of Medellín CSS, CSS Conf CO

and​ Medellín Identidad y Seguridad

@glrodasz

GDE Web Technologies

Curso de Autenticación con OAuth

Curso de Express.js

Agenda

State Management in JS

Flux / Redux / Mobx

React State

    Local State

    Context API

    React Hooks

State Management in JavaScript

state

/steɪt/

the particular condition that someone or something is in at a specific time.

In information technology and computer science, a program is described as stateful if it is designed to remember preceding events or user interactions;

 

the remembered information is called the state of the system.

/users

/users/23

/users/products

/users/products/11

Route as state of the app

Models and views in Backbone

Observable*

Flux / Redux / Mobx

Flux

Dispatcher

Store

View

Action

Action

Redux

Reducer(s)

Store

View

Action

Dispatch

Mobx

Action

State*

View

React State

Local State

Context

Hooks

The future is not one Solution

Temporary state

(Form, Modals)

Local State

Large app

(Web application)

Flux/ Redux /Mobx

Small app (Shopping cart )

Local State

HOCs / Render Props

Hooks

+ Local State, Hooks

Questions?

The future of the state management in JavaScript

By Guillermo Rodas

The future of the state management in JavaScript

  • 776