123456789101112 |
- import React, {useState} from "react";
- export const Input = () => {
- const [text, setText] = useState("мой текст11111")
- return (<>
- {text.length}<br/>
- {text}<br/>
- <input value={text}
- onChange={e => setText(e.target.value.toUpperCase())}/>
- <button onClick={() => setText(text + '#')}>#</button>
- </>)
- }
|