Posts tagged with: #react

Baikal photo 1

React setState: the Right Way

In this tutorial, I’ll explain how to change the state in React components using built-in setState method. I’ll cover in detail two different approaches of using this method, explain the differences between these approaches, and show when to use which. In the end, I’ll discuss the common pitfalls that may occur when changing the state.