Last active
January 3, 2017 15:17
-
-
Save gkueny/58c27914de0eb2422ffabfcd28f10b82 to your computer and use it in GitHub Desktop.
code for http://gkueny.fr/feuille-de-route-react article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// initialisation du state | |
this.state = { | |
myText : "", // notre texte | |
foo : 1 // un nombre quelconque | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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