LeetCode-OpenSource/ayanami

Change useHooks to something else

Brooooooklyn opened this issue · 2 comments

use means hooks already. useHooks looks too verbose.

Just an idea. We could split useHooks into two hooks methods. One is useState and the other is useAction. The advantage is that if there is an FC only needs the action but the state. Use useAction can avoid unnecessarily re-render. Does anyone have any idea?

fix at release 0.10.0