Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Unit Testing React Hooks | Better HN
Unit Testing React Hooks
(medium.com)
1 points · by
dawchihliou
· 8y ago · 1 comment
Comments
[–]
rydel
8y ago
It is slightly misleading. One cannot test hooks alone - a component, which uses a hook, must be created to act on them to thest if the component behaves properly with the hook. There is no way to make unit test for a hook.