Update to React 18
This commit is contained in:
@ -47,13 +47,12 @@ const MultiselectCheckbox = ({ options, onChange }) => {
|
||||
```jsx
|
||||
const options = [{ label: 'Item One' }, { label: 'Item Two' }];
|
||||
|
||||
ReactDOM.render(
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<MultiselectCheckbox
|
||||
options={options}
|
||||
onChange={data => {
|
||||
console.log(data);
|
||||
}}
|
||||
/>,
|
||||
document.getElementById('root')
|
||||
/>
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user