Skip to content

Repository files navigation

React Autocorrect Input Component

Autocorrect input react component, suggested text when you type in.

screenshoot

Doc

https://reactmaker.github.io/react-autocorrect-input/

requirement

  • React 16.4^

Download from NPM

npm install @reactmaker/react-autocorrect-input

How to use

importReactfrom'react';import{render}from'react-dom';import{hot}from'react-hot-loader';importInputfrom'@reactmaker/react-autocorrect-input';classDemoextendsReact.Component{state={value: '',dataSource: ['apple','ask','applice','best','book','beep','cat','can','car'],}onChange=(value)=>this.setState({ value })render(){const{ value, dataSource }=this.state;return(<InputonChange={this.onChange}value={value}dataSource={dataSource}/>);}}constMain=hot(module)(Demo);render(<Main/>,document.getElementById('app'));

About

Autocorrect input component for react

Resources

Stars

3 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages