skip to Main Content

Reactjs – How can you access multiple props.children with PReact

I am using astro and created this Card component with PReact and Bootstrap Card.jsx import "bootstrap/dist/css/bootstrap.min.css"; export default function Card(props) { return ( <div class="card" style={{ marginBottom: '20px' }}> <div class="card-header" style={{ color: '#ACEB98' }}> {props.children[0]} <b>{props.cardTitle}</b> </div> <div class="card-body">…

VIEW QUESTION
Back To Top
Search