I'm trying to improve my React code, and I would like to know if instead of duplicating components with different variables, there was a possibility to create a single component and modify the variables?
<Card>
<CardTitle>Hey</CardTitle>
<CardTexte>Text</CardTexte>
<CardButton>Yo</CardButton>
</Card>
<Card>
<CardTitle>Hey</CardTitle>
<CardTexte>Text</CardTexte>
<CardButton>Yo</CardButton>
</Card>
<Card>
<CardTitle>Hey</CardTitle>
<CardTexte>Text</CardTexte>
<CardButton>Yo</CardButton>
</Card>
Thanks for your time