Newfoundland Pitbull Mix

    react-input-validate

    0.0.4 • Public • Published

    react-input-validate

    npm npm npm

    Input validation for null, undefined, Infinity and NaN values

    Demo

    Click Here

    Installation

    1. Install React Input Validate as a dependency
    # NPM 
    $ npm install react-input-validate
    1. Import the react-input-validate module
    // ES6
    import { validate } from "react-input-validate";

    Example

    import { validate } from 'react-delimiter';
     
    render() {
        <h4>{validate(Value)}</h4>
      }
     
    Input Output
    validate(123) 123
    validate(undefined) N/A
    validate(null) N/A
    validate(Infinity) -
    validate(NaN) N/A

    Parameters

    {
        value=Numbers or Strings
    }

    Install

    npm i react-input-validate

    DownloadsWeekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Unpacked Size

    271 kB

    Total Files

    15

    Last publish

    Collaborators

    • miteshtagadiya