Skip to content

afeiship/react-virtual-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-virtual-input

React component for virtual input.

size:

  • 12K react-virtual-input.js
  • 52K react-virtual-input.js.map

properties:

  static propTypes = {
    className:PropTypes.string,
    value:PropTypes.string,
    onClear:PropTypes.func,
  };

usage:

class App extends React.Component{
  state = {
    value:'Hello react virtual input!'
  };
  _change = (e) =>{
    this.setState({value:e.target.value})
  };

  _clear =(e) =>{
    this.setState({value:''})
  }

  render(){
    return (
      <div className="hello-react-virtual-input">
          <input type="text" value={this.state.value} onChange={this._change}/>
          <ReactVirtualInput onClear={this._clear} value={this.state.value} />
      </div>
    );
  }
}

resource:

About

React component for virtual input.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published