You are on page 1of 2

Stateless vs Stateful

Stateless Stateful

Data can Data can


Input Data change Input Data change
(externally) (externally)

Widget Widget

Internal State
Gets (re)-
rendered
Renders UI when Input Gets (re)-
Data rendered when
changes Renders UI Input Data or
local State
changes
Understanding “State”

In General

State is Data/ Information used by your App

App State

Authenticated Users
Loaded Jobs

Widget State

Current User Input


Is a Loading Spinner being shown?

You might also like