input with compositionStart,compositionUpdate,compositionEnd for ime like Chinese input
npm install --save @lokibai/react-input
import React from 'react';
import { Input Textarea } from '@lokibai/react-input';
const MyInput = () => {
const [value, setValue] = React.useState('');
const onChange = value => {
setValue(value);
};
return <Input value={value} onChange={onChange} />;
};
const MyTextarea = () => {
const [value, setValue] = React.useState('');
const onChange = value => {
setValue(value);
};
return <Textarea value={value} onChange={onChange} />;
};