Redux app reducer
Members
# inner constant initialState
Initial app state
Properties:
Name | Type | Description |
---|---|---|
isMobileBrowser |
boolean | Indicates if the user's brower is a mobile browser |
Methods
# inner appReducer(state, action) → {object}
Updates Redux app state based on an action type and a payload
Parameters:
Name | Type | Description |
---|---|---|
state |
object | The current state |
action |
object | Any needed data (including the action type) |
The new state
object