useToggle
Toggle a boolean value on or off with handlers
const [state, setOn, setOff, toggle] = useToggle(initialState, handlers);
Sample Usage
Show editable code example
Any Paragon component or export may be added to the code example.
Basic Usage
Show editable code example
Any Paragon component or export may be added to the code example.
Usage Insights#
useToggle
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-account | 20.46.3 | 1 | |
frontend-app-admin-portal | 20.46.3 | 22 | |
frontend-app-authn | 20.46.2 | 2 | |
frontend-app-communications | 20.46.2 | 2 | |
frontend-app-course-authoring | 20.46.2 | 14 | |
frontend-app-discussions | 20.44.0 | 9 | |
frontend-app-enterprise-public-catalog | 20.46.3 | 1 | |
frontend-app-learner-dashboard | 20.46.2 | 3 | |
frontend-app-learner-portal-enterprise | 20.45.4 | 10 | |
frontend-app-learner-record | 20.46.3 | 1 | |
frontend-app-learning | 20.46.0 | 2 | |
frontend-app-support-tools | 20.46.0 | 1 | |
frontend-component-header-edx | 21.5.6 | 1 | |
frontend-component-header | 21.5.6 | 1 | |
frontend-lib-special-exams | 20.44.0 | 4 | |
prospectus | 20.46.2 | 2 |