ucs
another controlled state hook
Install
npm install ucs
Usage
import React from "react";import useControlledState from "ucs"; const Toggler = value onChange defaultValue const state setState = ; return <button =>state ? "on" : "off"</button> ;;
License
MIT © jeetiss