Réponse

setState(obj);

Explication

this.setState() takes an object, and merges that object with the component’s current state. If there are properties in the current state that aren’t part of that object, then those properties remain how they were.

Question

Comment s'appelle la méthode qui permet de modifier le state d'un component ?

Thématique