Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97
Full Stack Developer | Freelancer | JavaScript | React | Nodejs. Loves sharing knowledge through technical articles. Dev.to: https://dev.to/myogeshchavan97 https://linktr.ee/myogeshchavan97
Markdown supported · ⌘↵ to post
Darlan Tódero ten Caten
Good content, I agree and already use the tips in my code.
The last example can be even shorter (and easy to read) because you are not using the prevState:
this.setState({ numbers: [] });