Here is a link to codesandbox: https://codesandbox.io/s/sparkling-night-3hpnps?file=/src/TestimonialCard.tsx:509-631
1. Can someone help me how to go from this
<p className="text-xl font-medium tracking-tight text-[#dddddd]">
{props.testimonial.name}
</p>
to
<p className="text-xl font-medium tracking-tight text-[#dddddd]">
{name}
</p>
- and I want to destruct the
name, image, text, positionwithin the props something like:
const TestimonialCard = (props:{testimonial:{name, image, text, position}) => {...}