|
|
|
|
|
by dragonwriter
1373 days ago
|
|
> hooks aren’t JS They literally are. > hooks aren’t JS The code in React executing components relies on hooks running in a consistent order each time the component runs, but the existence of a runtime context that has expectations about side effects (and hooks are side effects) doesn't make it “not javascript”. |
|
I don't have an opinion, just generally curious because it feels very odd that the order of my functions matter.