StateusePreviousTrack a value from the previous render.APIusePrevious.d.tstsusePrevious<T>(value: T): T | undefinedView source on GitHubRelated hooksuseToggleBoolean state with toggle and explicit set.useFormControlled form state with one change handler.useLocalStorageState persisted to localStorage.useGeoLocationuseList