Can I set function in state?

You can’t the way you have attempted but technically yes, you can have a function that returns the desired state you want initialised in your constructor.

Sizin İçin Seçtik  Is React context a state manager?

Leave a Reply

Your email address will not be published. Required fields are marked *

Can I set function in state?

You can’t the way you have attempted but technically yes, you can have a function that returns the desired state you want initialised in your constructor.

Sizin İçin Seçtik  Habitat gönüllüsü nasıl olunur?

Leave a Reply

Your email address will not be published. Required fields are marked *