How Do I Use State in a Struct Component? #3749
Unanswered
Android789515
asked this question in
Q&A
Replies: 1 comment
-
|
Struct components can hold state as normal fields in their struct and read/write to them in the various lifecycle methods. I'm guessing there is some confusion with "hooks" and their version of state management, i.e. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't see an entry for state in the struct component docs. Does that mean they don't support state? Do I need to write a higher order function component for that?
Beta Was this translation helpful? Give feedback.
All reactions