I'd like to store a reference to a class in state but an error occurs.
Specifically, the following:
useState(SomeClass)
results in:
Class constructor SomeClass cannot be invoked without 'new'
I'd like to store a reference to a class in state but an error occurs.
Specifically, the following:
useState(SomeClass)
results in:
Class constructor SomeClass cannot be invoked without 'new'