When using the profiler from the React Dev Tools extension, in the tab that says "Why did this render?" and it shows the number of the hooks that changed, is this the same as the order in which they are defined/called in the component?
For example:
Then in my component:
const [foo, setFoo] = useState(0);
const [bar, setBar] = useState(0);
const [baz, setBaz] = useState(0);
Does it correspond to the second hook and third hook, bar
and baz
?