Zac Anger's Blog

redux in two lines

2016-07-29

Tags: react, redux

Okay, not actually Redux in two lines, just the idea behind it And really one of those is basically the idea of React, I guess.

const render = state => ui
const reducer = (oldState, action) => newState