Last active
October 14, 2021 00:53
-
-
Save aidiary/7b5806a8d3c7f707304faa4b92f0dae1 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
<form onSubmit={formSubmitHandler}> | |
<div className={`form-control ${!isValid ? 'invalid' : ''}`}> | |
<label>Course Goal</label> | |
<input type='text' onChange={goalInputChangeHandler} /> | |
</div> | |
<Button type='submit'>Add Goal</Button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment