3 ms·
The issue if I understand your comment correctly is that you want to keep the ui state in sync with the logical state, so you can't just keep it in an object so
by foota 8y ago
The issue if I understand your comment correctly is that you want to keep the ui state in sync with the logical state, so you can't just keep it in an object somewhere, since that wouldn't keep up with react's rendering?
I do think you can have a hook return a javascript object though for the normal reasons of encapsulation and such.