Releases: vkbansal/react-date-primitives
Releases · vkbansal/react-date-primitives
v2.0.2
v1.1.0
v0.4.0
BREAKING CHANGE!
In render
prop of <CalendarMonth />
instead of null
, an object with date
& inCurrentMonth
keys is passed.
Example:
{weeks.map((week, i) => (
<tr key={i}>
{week.map((day, j) => (
- <td key={`${i}-${j}`}>{day ? day.date.getDate() : ''}</td>
+ <td key={`${i}-${j}`}>{day.inCurrentMonth ? day.date.getDate() : ''}</td>
))}
</tr>
))}