Socket
Socket
Sign inDemoInstall

@lafayette-college-libraries/react-delayed-input

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lafayette-college-libraries/react-delayed-input

react-delayed-input ===================


Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

react-delayed-input

Build Status

A small React input component designed to put off triggering onChange until the element is blurred.

usage

DelayedInput takes the same props as input. If present, an onBlur handler will be triggered before the onChange handler.

example

import React from 'react'
import DelayedInput from '@lafayette-college-libraries/react-delayed-input'

export default class DateComponent extends React.Component {
  constructor (props) {
    super(props)

    this.state = {
      value: props.value || ''
    }
  }

  render () {
    return (
      <div>
        <p key="display">{this.state.value}</p>
        <DelayedInput
          onChange={value => this.setState({value})}
          type="date"
          value={this.state.value}
        />
      </div>
    )
  }
}

license

GPL-3.0

FAQs

Package last updated on 04 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc