Open make-github-pseudonymous-again opened 5 years ago
Related to #28.
At first glance react-big-calendar
seems easier to use than fullcalendar
, reasons:
date-fns
localizerpremium
feature with fullcalendar
)Cons:
What about creating custom hooks instead? useYear
, useMonth
, useWeek
, useDay
. The interface would look like this:
const {
begin: Datetime(2017,0,1,...), // inclusive
end: Datetime(2018,0,1,...), // non-inclusive
prev: () => {year: 2016},
next: () => {year: 2018},
...
} = useYear({year: 2017});
We could also have a useRectangularMonth
to replicate the current behaviour (show full weeks in monthly calendar).
Use one of: