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

How do I use SVGs in AstroJS? – Html

Going to their Docs @ AstroDocs Astro.js Example import imgReference from './image.png'; // imgReference === '/src/image.png' import svgReference from './image.svg'; // svgReference === '/src/image.svg' import txtReference from './words.txt'; // txtReference === '/src/words.txt' // This example uses JSX, but you can…

VIEW QUESTION
Back To Top
Search