Last active
November 28, 2017 04:46
-
-
Save gaperton/62d4cfcd7baad36672d5243cdfe7133d to your computer and use it in GitHub Desktop.
Managing state and forms with React. Part 1
This file contains hidden or 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
import * as React from 'react' | |
class AddUser extends React.Component { | |
state = { | |
name : '', | |
email : '', | |
isActive : true | |
} | |
onSubmit = e => { /* submit form logic */ } | |
render(){ | |
return ( | |
/* jsx */ | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment