Skip to content

useStateHistoryGetter

Custom useState with getter state function and that tracks and allows to use previous values.

Demo

INFO

The implementation is like that useStateHistory, adding getter function of useStateGetReset.

Please visit useStateHistory and useStateGetReset examples to see how it works.

Released under the MIT License.