I’m new to reactjs.
I want to create a calendar which accepts an event for a particular date.
A small example can be found here
However, when I want to see the output, it outputs
Attempted import error: 'date-fns' does not contain a default export (imported as 'dateFns').
Can anyone assist me here to resolve the error?
After importing in this way – import addMonths from ‘date-fns/addMonths*
I’m getting error as shown in snapshot. Snapshot
Can anybody help me in this?