Re:RFC: Intent to Ship React 18
by Spivak on Thursday March 24, 2022 @05:01PM
(#30795287)
And you can put hooks in if statements too, but like iterables it won't have the effect you probably want.
Hooks aren't callback functions, they're functions that take callback functions. apparently this is breaking python. The naming convention is just so the linter can identify hooks, they're not magic.
[ Parent
| on HN ]
No idea why you're giving examples in Python code when we're talking about Javascript and React.
On "it's iterators actually", I have a response to a sibling comment here: https://news.ycombinator.com/item?id=30799543