добавил текст в форму
This commit is contained in:
@@ -19,6 +19,7 @@ function Test() {
|
||||
return <>
|
||||
<form onClick={() => {}}>
|
||||
<input type='text' style={isError ? {'borderColor': 'red'} : null}></input>
|
||||
<p>text</p>
|
||||
<button type="button" onClick={() => setIsError(!isError)}>Text</button>
|
||||
</form>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user