Faz parte do material de React que eu montei a partir das minhas entrevistas. Abaixo, a resposta em inglês e, quando existe, a pegadinha mais comum.
Props: inputs supplied to a component. Treat them as read-only.
State: data retained by React for a component's position in the tree. A setter requests a future render rather than changing the state snapshot in the current handler. React can skip an update whose next value is equal by Object.is.
Treat state objects as immutable and use an updater such as setCount(c => c + 1) when the next state depends on the previous value. Components can also render because a parent renders or a consumed context changes.
Ler é o primeiro passo. No app, essa pergunta vira flashcard com repetição espaçada, e o módulo tem quiz e simulado para testar o que ficou.
Treinar essa pergunta no app