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