Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 465 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 465 Bytes

React State Management

Comparison of different approaches to managing global state in React apps.

Database

The async examples require a Postgres database with the following schema:

CREATE TABLE "todos" (
    "id" varchar NOT NULL,
    "text" text NOT NULL,
    "completed" bool NOT NULL DEFAULT false,
    PRIMARY KEY ("id")
);

To connect to the database, add the following environment variables:

PGHOST
PGUSER
PGPASSWORD
PGDATABASE