But I believe you could/should wrap the two functions toggle and reset with a useCallback hook to avoid them being recreated at every call of you functional ...
確定! 回上一頁