mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-12-14 04:03:37 +01:00
docs: Fix code snippets syntax highlighting & some refactoring
This commit is contained in:
@@ -4,10 +4,12 @@ checking. It's only meaningful using inside `<form>`.
|
||||
|
||||
All additional `props` are passed to the `<input type="email">` HTML component.
|
||||
|
||||
```js
|
||||
```jsx
|
||||
import { useState } from "react";
|
||||
import Button from "./Button";
|
||||
|
||||
const [email, setEmail] = useState("Wrong email");
|
||||
|
||||
<form onSubmit={(e) => e.preventDefault()}>
|
||||
<EmailInput
|
||||
value={email}
|
||||
|
||||
Reference in New Issue
Block a user