Javascript – TypeError: product.features.map is not a function
const [featureRatings, setFeatureRatings] = useState(() => product.features.map((feature: { category: any }) => ({ category: feature.category, rating: 0, // Default rating value })) ); const [processLifecycleRatings, setProcessLifecycleRatings] = useState( enter image description here help me to figure out what is going…