I would like to ask why my state is not changing when I do an onclick event. I\'ve search a while ago that I need to bind the onclick function in constructor but still the s
when i was running the code and checking my output at console it showing the that it is undefined. After i search around and find something that worked for me.
componentDidUpdate(){}
I added this method in my code after constructor(). check out the life cycle of react native workflow.
https://images.app.goo.gl/BVRAi4ea2P4LchqJ8