Skip to content

I don't want my component state to be null anytime. What is the workaround? #1643

Answered by Havunen
farooqkz asked this question in Q&A
Discussion options

You must be logged in to vote

Do you mean how to add type definition for it?
See:

If you mean the actual value you can implement your own base component type and set the state in constructor and extend everything from that type.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@farooqkz
Comment options

@Havunen
Comment options

@farooqkz
Comment options

@Havunen
Comment options

Answer selected by farooqkz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants