You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

hyper-input-react

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyper-input-react

![preview](preview.gif)

1.1.2
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

hyper input for react

preview

install

npm install --save-dev hyper-input-react style-loader css-loader

webpack.config.js

// add loader
{
    test: /\.css$/,
    loader: "style-loader!css-loader"
}

import

import HyperInput from 'hyper-input-react'

use

<HyperInput
    placeholder='placeholder'
    defaultValue=''
    regExp={this.regExp.bind(this)}
    setValue={this.setValue.bind(this)}/>

placeholder: placeholder, optional

defaultValue: defaultValue, optional

regExp: regExp rules, optional

regExp(value) {
    return value.replace(/\s/, '')
}

setValue: the func to get value

setValue(value) {
    this.value = value
    console.log(value)
}

Keywords

input

FAQs

Package last updated on 15 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts