Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// initialisation du state
this.state = {
myText : "", // notre texte
foo : 1 // un nombre quelconque
}
// Ajout d'une nouvelle todo
this.setState({
myText : newText
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment