useState hook's the second return value that similar with setState, hereinafter referred to as hook/setState
In some cases, we need to do something after the didUpdate triggering by hook/setState. So I recommend hook/setState to return Promise type value after execution.
useState hook's the second return value that similar with setState, hereinafter referred to as
hook/setState
In some cases, we need to do something after the didUpdate triggering by
hook/setState
. So I recommendhook/setState
to return Promise type value after execution.