Por enquanto, esta lição está em inglês.
Giving components memory
A like button has to remember how many likes it has, and the screen has to update when that number changes. That is exactly what state does.
Por enquanto, esta lição está em inglês.
A like button has to remember how many likes it has, and the screen has to update when that number changes. That is exactly what state does.