
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
react-week-events
Advanced tools
A React.js responsive week calendar to show/handle events
npm install --save react-week-events
yarn add react-week-events
import React, { Component } from 'react'
import WeekCalendar from 'react-week-events'
import 'react-week-calendar/dist/styles.css'
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, i) => (
<div onClick={() => console.log(`Event: ${event.name} on position: ${i}`)}>
{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
The npm package react-week-events receives a total of 17 weekly downloads. As such, react-week-events popularity was classified as not popular.
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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.