Currently I am trying to use this below:
const ColoredDateCellWrapper = ({ children, value }) =>
React.cloneElement(Children.only(children), {
style: {
...children.style,
backgroundColor: value < CURRENT_DATE ? "lightgreen" : "lightblue",
},
})
but it won't work for me as I need to add different backgroundColor
for the cells having events array.