shall we setState like native hook?
piggyman007 opened this issue · comments
shall we setState like native hook?
e.g., setData(newData)
instead of
setData(v => newData)
Yes, both are possible.
Thanks for the response.
I have added more example in the readme file, please merge my PR.
@dai-shi
Merged. Thanks. Look forward to more feedbacks.