this.setAppState
this.setAppState(update, callback)
Like this.setState but for app state instead of component state.
update may be an object or a function.
If update is an object:
setAppStatewill mergeupdateintothis.appState
If update is a function:
updatemust have the form(prevAppState) => newAppStatesetAppStatewill callupdatewith the current appState value, and will merge the returnednewAppStatevalue intoappState.
setAppState is not synchronous, and will call callback after it has
completed merging update into appState.