![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
react-week-events
Advanced tools
Readme
A React.js component to show/handle week events
npm install --save react-week-events
yarn add react-week-events
import React, { Component } from 'react'
import WeekCalendar from 'react-week-events'
class Example extends Component {
state = {
events: [
{ name: 'Event 1', date: new Date() },
{ name: 'Event 2', date: new Date() },
{ name: 'Event 3', date: new Date() }
]
}
eventRender = event => (
<div onClick={() => console.log(event)}>{event.name}</div>
)
emptyRender = () => <div>No events</div>
render() {
const { events } = this.state
return (
<WeekCalendar
events={events}
emptyRender={this.emptyRender}
eventRender={this.eventRender}
past={true}
/>
)
}
}
Prop | Type | Default | Description |
---|---|---|---|
dateLabel | String | 'date' | Object date value name for render event on respective day |
events | [] | [] | List of events to render |
emptyRender | Function | () => 'No event' | Message to show when no event |
eventRender | Function | (event) => event.name | Function to render and handle the event |
past | Boolean | true | Option to show past dates |
MIT © bernagl
FAQs
A React.js responsive week calendar to show/handle events
We found that react-week-events 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.