Loading homepage
Input: const { value, toggle } = useBoolean(); Output: value is false; toggle flips it on the next render.
Input: const before = useBoolean(true); // rerender without state changes Output: The returned object and utilities retain their identities.
An optimized version of the existing useBoolean object API.