mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
## Summary Adds a new unit test to `parseHookNames-test` which verifies that we correctly give names to hooks when they are used indirectly: e.g. ``` const countState = useState(0); const count = countState[0]; const setCount = countState[1]; ``` Should produce `count` as the name. ## Test plan ``` yarn test yarn test-build-devtools yarn test-build-devtools parseHookNames ```