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_date_picker
Advanced tools
📅 React时间选择组件
npm install react_date_picker --save
// ...
// ES6
import React, { Component } from "react";
import ReactDOM from "react-dom";
import ReactDatePicker from "react_date_picker";
class App extends Component {
constructor(props) {
super(props);
}
handleDateChange(date) {
// ...
}
handleClose(date) {
// ...
}
render() {
const config = {
initDate: "2016-09-12",
format: "YYYY-mm-dd",
onClose: this.handleClose.bind(this),
onChange: this.handleDateChange.bind(this)
};
return (<div class="app">
<ReactDatePicker config={config} />
</div>);
}
}
属性名 | 意义 | 类型 | 默认 | 是否必须 |
---|---|---|---|---|
el | 选择器(input框的class/id之类的) | String | N/A | 是 |
trigger | 在什么事件下显示选择器 | Array.<String> | N/A | 是 |
initDate | 默认时间 | Date/String | N/A | 是 |
format | 输出时间的格式 | String | N/A | 是 |
onOpen | 时间选择器刚显示的回调 | Fnnction | N/A | 否 |
onClose | 时间选择器关闭后的回调 | Fnnction | N/A | 否 |
onChange | 选择时间发生变化的回调 | Fnnction | N/A | 否 |
FAQs
📅 React时间选择组件
We found that react_date_picker 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.
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.