Input React is a input component for your react application. Below are the simple steps for installing and using Input React.
1.0.0
npm install text-input-react
import { TextInputReact } from "text-input-react";
import React, { Component } from 'react';
import './App.css';
import { TextInputReact } from 'text-input-react';
export class App extends Component {
constructor(props) {
super(props)
this.state = {
value:''
}
}
changeHandler=(e)=>{
this.setState({
value:e.target.value
})
}
render() {
return (
<div className="App">
<TextInputReact
value={this.state.value}
label="Name"
placeholder="Enter name"
handleChange={this.changeHandler}
/>
</div>
)
}
}
export default App
https://github.com/Official-Rahul/text-input-react