
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
react-component-time-input
Advanced tools
npm install react-component-time-input
Then you can import or require with your preferred module builder.
import { TimeInputText, TimeInputListBox } from 'react-component-time-input';
Or
var reactTimeInput = require('react-component-time-input');
var TimeInputListBox = reactTimeInput.TimeInputListBox;
An example in es2015 and jsx:
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { TimeInputText, TimeInputListBox } from '../timeinput/index';
function mapStateToProps(state) {
return {
hours: state.time.hours,
minutes: state.time.minutes,
seconds: state.time.seconds
};
}
class App extends Component {
render() {
console.log('App this.props: ', this.props);
const { updateTime } = this.props;
return (
<div>
<section id={'time-input-text'}>
<span>Text Time Input</span>
<TimeInputText {...this.props}/>
</section>
<section id={'time-input-list-box'}>
<div>ListBox Time Input</div>
<TimeInputListBox {...this.props} timeStep={5} onChange={updateTime} useTwelveHourTime/>
</section>
</div>
);
}
}
export default connect(mapStateToProps)(App);
FAQs
A datepicker component written in React.
We found that react-component-time-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.