Ir para o conteúdo principal
0

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.