Skip to content

Instantly share code, notes, and snippets.

@StevenMDixon
Last active June 4, 2019 14:31
Show Gist options
  • Save StevenMDixon/ea346aaabb1125e5e31e0305f69a144d to your computer and use it in GitHub Desktop.
Save StevenMDixon/ea346aaabb1125e5e31e0305f69a144d to your computer and use it in GitHub Desktop.

More on State

state machines = automata that take a finite number of inputs and output a finite amount of output.

derived state: selectors = functions that receive state as a paramater and make a determination based on that state.

function isOld(state){return state.age > 50}

observer = a function for watching state changes within a state machine. probably using mutationObserver. //need to figure out a way to update a component based on mutation to the state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment