import React from "react" ; import Card from "./Card" ; import Person from "../interfaces/person" ; const CardList = ( { persons } ) => { return ( < > { persons . map ( ( user ) => ( < Card key = { user . id } user = { user } / > ) ) } < />); } ; export default CardList ;