Theme

npm_versionnpm Paragon package page

Toggle a boolean value on or off with handlers

const [state, setOn, setOff, toggle] = useToggle(initialState, handlers);

Sample Usage

Any Paragon component or export may be added to the code example.

Basic Usage

Any Paragon component or export may be added to the code example.

Usage Insights#

useToggle

Project NameParagon VersionInstance Count
frontend-app-account22.18.12
frontend-app-admin-portal22.17.048
frontend-app-authn22.18.12
frontend-app-communications22.17.02
frontend-app-course-authoring22.17.065
frontend-app-discussions22.16.19
frontend-app-enterprise-public-catalog22.17.01
frontend-app-learner-dashboard22.18.13
frontend-app-learner-portal-enterprise22.17.015
frontend-app-learner-record22.17.01
frontend-app-learning22.17.02
frontend-app-publisher22.17.01
frontend-app-support-tools21.13.14
frontend-component-header-edx23.6.11
frontend-component-header23.10.01
frontend-lib-special-exams23.4.23