Skip to content

Input with compositionStart,compositionUpdate,compositionEnd for ime like Chinese input

License

Notifications You must be signed in to change notification settings

uniquexiaobai/react-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@lokibai/react-input

input with compositionStart,compositionUpdate,compositionEnd for ime like Chinese input

See facebook/react#3926

NPM

Install

npm install --save @lokibai/react-input

Usage

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} />;
};

License

MIT ©

About

Input with compositionStart,compositionUpdate,compositionEnd for ime like Chinese input

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published