1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import React from "react"; import "./Display.css"; const ItemsDisplay = (props) => { const items = props.items; return ( <div className={"ItemsDisplay"}> <ol> { items.map( (item) => { return <li key={item}>{item}</li> } ) } </ol> </div> ); } export default ItemsDisplay;