- accepted / - tried
Create a hook usePrevious() to return the previous value, with initial previous value of undefined.
usePrevious()
undefined
考えを喋りながら。
Try it out
Console