🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
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.3.4
latest
Source
npm
Version published
Weekly downloads
41
485.71%
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'
    value=''
    regExp={this.regExp.bind(this)}
    setValue={this.setValue.bind(this)}/>

placeholder: placeholder, optional

value: value, 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 28 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