@hohoaisan Sorry for the late reply. Seems like a good option to add it to the library. I'll check how much work is needed for it. Thanks for the suggestion.
Don't rely on props and state for calculating your next state since they could be updated asynchronously. It will not scale well. 😑
Instead pass a function to setState() 🤩
#javascript#react#reactjs#reactnative