Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
roastnewt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
roastnewt
5y ago
I use hooks the way you do for independent information, but when the states are related (like a userID and a userName for example), then it's better to have them as properties in the same object. If they tend to both change at the sam