
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
itf-react-datepicker
Advanced tools
The datepicker developed for the ITF Website, check out the DEMO
Install it
yarn add itf-react-datepicker
Then use it
import React, { useState } from "react";
import DatePickerITF from "./DatePicker";
// add css - up to you how you do this
import '~/node_modules/itf-react-datepicker/dist/main.css';
const DatePickerExample = (props) => {
const { initialStartDate, initialEndDate } = props;
const [startDate, setStartDate] = useState<Date | null>(null);
const [endDate, setEndDate] = useState<Date | null>(null);
return (
<DatePickerITF
startDate={startDate}
endDate={endDate}
onDateChange={(startDate, endDate) => {
setStartDate(startDate);
setEndDate(endDate);
}}
/>
);
};
Yo, this datepicker needs a wrapper that holds the state of the start and end dates. This gives you the flexibility to change the selected dates from your own code e.g. in a reset dates button.
Here are the props:
| prop | type | description |
|---|---|---|
| startDate | Date | The start date |
| endDate | Date | The end date |
| onDateChange | `(startDate: Date | null, endDate: Date |
| disabled? | boolean | is it disabled on not, duh |
| bemModifier? | string | a class for the datepicker, if you want it |
| elementId? | string | an id for the datepicker, if you want it |
You should hold the state for startDate and endDate in your wrapper component and update it with onDateChange.
FAQs
A date picker designed for the ITF website
The npm package itf-react-datepicker receives a total of 1 weekly downloads. As such, itf-react-datepicker popularity was classified as not popular.
We found that itf-react-datepicker 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.