Tell us what’s happening:
Struggling with how to add generics to the function. I’ve tried every which way I can think of but I don’t know where or how to add PlayerData as the generic type.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: index.tsx */
{/* User Editable Region */}
const [player, setPlayer] = useState(defaultPlayer);
return <PlayerCard player={player} />;
{/* User Editable Region */}
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a Football Player Card Builder - Step 34