← React Beginner Questions - Set 8 Q71
React Beginner Questions - Set 8
function Card({ title, children }) { // props: from outside
const [open, setOpen] = useState(true); // state: owned here
return open ? <h3>{title}{children}</h3> : null;
}