I am working on creating a reusable card-publication component that allows me to specify the classname and position when declaring the tag.
Below is the code for the component:
import React from 'react';
function CardPublication({name}) {
return (
<div id={name}>
<div id="Card Incard">
</div>
<p id="Descripcion"> Paragraph .</p>
</div>
);
}
export default CardPublication
Here is an example of how you can declare multiple instances of the component:
<CardPublication ></CardPublication>
<CardPublication ></CardPublication>