text-input-react

1.0.0 • Public • Published

Input React

Input React is a input component for your react application. Below are the simple steps for installing and using Input React.

Latest version

1.0.0

How to install

npm install text-input-react

How to use

Import

import { TextInputReact } from "text-input-react";

Render component

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

Home page

https://github.com/Official-Rahul/text-input-react

Github Repo

https://github.com/Official-Rahul/text-input-react

Npm link

https://www.npmjs.com/package/text-input-react

Readme

Keywords

none

Package Sidebar

Install

npm i text-input-react

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

4.72 kB

Total Files

3

Last publish

Collaborators

  • official-rahul