Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@eperedo/calendar-hooks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eperedo/calendar-hooks - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

2

package.json
{
"name": "@eperedo/calendar-hooks",
"version": "0.0.8",
"version": "0.0.9",
"main": "./src/hooks/index.js",

@@ -5,0 +5,0 @@ "peerDependencies": {

@@ -15,32 +15,23 @@ > Basic hooks for calendar components

function MyCustomCalendar() {
function CustomCalendar() {
const [{ year, month, days }, changeDate] = useCalendar(new Date());
const [{ year, month, days }, changeDate] = useCalendar(new Date());
return (
<div>
<div>
Current Year: { year }
</div>
<div>
Current Month: { month.name }
</div>
<div>
{
days.map((day) => {
return (
<button
onClick={e => changeDate(day.date)}
key={day.number}>
{day.number}
</button>
)
});
}
</div>
</div>
);
return (
<div>
<div>Current Year: {year}</div>
<div>Current Month: {month.name}</div>
<div>
{days.map((day) => {
return (
<button onClick={(e) => changeDate(day.date)} key={day.number}>
{day.number}
</button>
);
})}
</div>
</div>
);
}
export default MyCustomCalendar;
export default CustomCalendar;
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc