Skip to content

Instantly share code, notes, and snippets.

@night-fury-rider
Created December 29, 2024 17:05
Show Gist options
  • Save night-fury-rider/af0724cdf13078067d49dc1832ff4a7d to your computer and use it in GitHub Desktop.
Save night-fury-rider/af0724cdf13078067d49dc1832ff4a7d to your computer and use it in GitHub Desktop.
Interface for React Component Props
import React from "react";
interface iPieChart {
data: any[];
pieContainerCustomStyles?: React.CSSProperties;
}
const PieChart = ({
data,
pieContainerCustomStyles,
}: iPieChart) => {
return (
<div
style={pieContainerCustomStyles}
>
{data.length}
</div>
};
export default PieChart;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment