Update to React 18
This commit is contained in:
@ -24,12 +24,11 @@ const UncontrolledInput = ({ defaultValue, onValueChange, ...rest }) => {
|
||||
```
|
||||
|
||||
```jsx
|
||||
ReactDOM.render(
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<UncontrolledInput
|
||||
type="text"
|
||||
placeholder="Insert some text here..."
|
||||
onValueChange={console.log}
|
||||
/>,
|
||||
document.getElementById('root')
|
||||
/>
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user