Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-time-input
Advanced tools
Contributor: Dima Bukhal - dimabuhal@gmail.com Collaborators: Dima Bukhal - dimabuhal@gmail.com, arthurvi (https://github.com/arthurvi, https://www.npmjs.com/~arthurvi)
If you want be contributors or collaborators - write me on dimabuhal@gmail.com with the theme 'react-time-input IMPORTANT'
A simple react component for select time in format HH:mm timeInput.jsx Its used webpack for building and es6 syntax
npm install react-time-input --save
const TimeWrapper = () => {
const onFocusHandler = (event) => {
console.log("hello there you entered : my name is ", event.target.name);
}
const onBlurHandler = (event) => {
console.log("you left ");
}
const onTimeChangeHandler = (val) => {
if (val.length === 5) {
// do something with this value
}
}
return (
<TimeInput
name="example"
initTime='11:12'
className='s-input -time'
mountFocus='true'
onTimeChange={onTimeChangeHandler}
onFocusHandler={onFocusHandler}
onBlurHandler={onBlurHandler}
/>
);
}
function App() {
return (
<TimeWrapper/>
);
}
ReactDOM.render(<App/>, document.querySelector("#myApp"));
> $ git clone https://github.com/dima-bu/react-time-input.git
Then install the dependencies:
npm install
You can simply run webpack example build using this command:
npm run example
Open in the web browser file ./example/index.html
Create build
npm run build
Please contribute to the project if you think this can be done better in any way even for this README :)
FAQs
A simple react component for select time in format HH:mm
The npm package react-time-input receives a total of 2,790 weekly downloads. As such, react-time-input popularity was classified as popular.
We found that react-time-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.