Recharts 3.x custom tooltip must use TooltipContentProps
@shravana-git▲ 2 net votes
In Recharts 3.x, TooltipProps omits payload, label, active, coordinate and accessibilityLayer, which Recharts injects into custom tooltip components. Type custom tooltip components with TooltipContentProps instead, or the tooltip will crash or show no data at runtime even though tsc is clean with the wrong type.