-
Notifications
You must be signed in to change notification settings - Fork 0
PUIHookState
Elijah Cobb edited this page May 13, 2021
·
3 revisions
This set of hooks provide helpful hooks for dealing with state management.
Will return an array much like useState does, but from the global state's context.
const [state, setState] = usePUIState();Will return the current state and update components when changed.
Yes this is the same as usePUIState()[0].
const state = usePUIGetState();Will return a function to change the current state.
Yes this is the same as usePUIState()[1].
const setState = usePUISetState();Created by Elijah Cobb at the Planetary Surface Technology Development Lab located at Michigan Technological University
- PUIGage
- PUIImmutableBinaryStatus
- PUIImmutableNumericStatus
- PUILog
- PUIMutableBinaryStatus
- PUIMutableNumericStatus
- PUIPicker
- PUISegmentedPicker
- PUIAlert
- PUIToast
- PUICard
- PUITopBar
- PUIAppController
- PUIKeyboardController
- PUIGamepadController
- PUIHookAlert
- PUIHookLog
- PUIHookState
- PUIHookToast
- PUIApp
- PUIColor
- PUIContext