Skip to content

Instantly share code, notes, and snippets.

@markwhitfeld
Created February 11, 2019 18:02
Show Gist options
  • Save markwhitfeld/4e7117a16a3c92e50bd9cf10bb75a519 to your computer and use it in GitHub Desktop.
Save markwhitfeld/4e7117a16a3c92e50bd9cf10bb75a519 to your computer and use it in GitHub Desktop.
const state = getState();
setState({ …state, loading: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment