-
-
Save neosaurrrus/52a6e6ab3f7164c344516da369bf8bda to your computer and use it in GitHub Desktop.
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
addProfile = person => { | |
const profiles = {...this.state.profiles} | |
profiles[`profile${Date.now()}`] = profile; //Profile here is the output of the form | |
this.setState({profiles}) // this setsState for the profiles property. | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment