npm / react-calendar
react-calendar
What changed in react-calendar 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking7 new APIs and options1 performance4 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-calendar 62 changes
Breaking changes 1
The CommonJS build was dropped, making the package ESM-only; Jest unit tests may encounter issues, and the notes suggest migrating to Vitest.
Fixes and other changes 1
Fixed a TypeError thrown on some browsers when getting the format.
react-calendar 53 changes
Breaking changes 2
Support for deprecated calendarType values was dropped.
propTypes were removed; users are advised to migrate to TypeScript or another type-checking solution.
Fixes and other changes 1
Added support for React 19.
react-calendar 41 changes
Breaking changes 1
React 16.8 is now the minimum supported version; users of older React versions should use react-calendar@^3.0.0.
react-calendar 320 changes
Breaking changes 6
This callback was renamed to onActiveStartDateChange.
This callback replaces onActiveDateChange.
React versions lower than 16.3 are no longer supported.
Backward compatibility for renderChildren was removed.
React-Calendar no longer imports its styles by default; import them separately to continue using them.
Typings are no longer shipped with the React-Calendar package.
New APIs and options 7
Use defaultValue instead of value to use React-Calendar as an uncontrolled component.
React-Calendar now ships ES6 Modules alongside CommonJS modules, allowing Webpack and other bundlers to optimize code better.
This prop lets developers customize the formatting of year numbers.
The arguments now include locale.
A callback prop called when the view changes.
This prop makes React-Calendar show two months, years, or other views at a time instead of one.
The arguments now also include activeStartDate.
Performance 1
Fixed excessive re-rendering caused by callback functions being merged suboptimally.
Behavior and default changes 4
formatMonthYear is now used on month tiles in YearView.
A default color is now provided for the tile representing the current day, month, or other current period.
The event is now exposed in onChange and onClick* functions.
The event is now exposed in onClick* functions.
Fixes and other changes 2
Fixed handling of dates before year 100 so clicking a date no longer jumps to the corresponding year in the 1900s.
Fixed year formatting for the th-TH locale.