Skip to content

Commit

Permalink
Example modified (#16)
Browse files Browse the repository at this point in the history
Example modified
  • Loading branch information
gsondev authored Apr 25, 2023
2 parents 0335a79 + df12535 commit 32cd8b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export default function Example() {
return (
<form onSubmit={handleSubmit}>
<label htmlFor="name">Name</label>
<input type="text" id="name" value={name} onChange={(e) => setName(e.target.value)} />
<input type="text" id="name" value={name} onChange={(e) => setName(e.target.value.trim())} />
<label htmlFor="email">Email</label>
<input type="email" id="email" value={email} onChange={(e) => setEmail(e.target.value)} />
<input type="email" id="email" value={email} onChange={(e) => setEmail(e.target.value.trim())} />
<label htmlFor="phone">Phone</label>
<input type="tel" id="phone" value={phone} onChange={(e) => setPhone(e.target.value)} />
<input type="tel" id="phone" value={phone} onChange={(e) => setPhone(e.target.value.trim())} />
<button type="submit">Submit</button>
</form>
)
Expand Down

0 comments on commit 32cd8b2

Please sign in to comment.