Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
react-pikaday
Advanced tools
A component wrapper around Pikaday.
To import Pikaday without any CSS:
import Pikaday from 'react-pikaday';
You'll then need to make sure you include the CSS from pikaday/css/pikaday.css
.
If you're using webpack with a configured style-loader for CSS, you can actually require this component along with the Pikaday CSS in one go:
import Pikaday from 'react-pikaday/bundled';
See the example app in this repo and the webpack.config.js
for an example of how this can be configured.
import React from 'react';
import Pikaday from 'react-pikaday';
var MyComponent = React.createClass({
getInitialState: function() {
return {
date: null
};
},
handleChange: function(date) {
this.setState({
date: date
});
},
render: function() {
var date = this.state.date;
return (
<div>
<p>
The date is {date.toDateString()}
</p>
<Pikaday value={date} onChange={this.handleChange} />
</div>
);
}
});
value | A Date object to set the currently-displayed date to. |
onChange | A callback called when the date is updated by the user. Passes a Date object as the first argument. |
valueLink | Instead of manually hooking up value/onChange to a state variable, you can instead use LinkedStateMixin to bind the two. |
v0.4.0 (Mar 1, 2016)
// before
var Pikaday = require('react-pikaday');
//after
var Pikaday = require('react-pikaday').default;
FAQs
A React component wrapper around Pikaday.
The npm package react-pikaday receives a total of 19 weekly downloads. As such, react-pikaday popularity was classified as not popular.
We found that react-pikaday demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.