aboutsummaryrefslogtreecommitdiff
path: root/src/components/Display/ItemsDisplay.js
blob: 9507e5b5423128412e4f03e9f0915549dcec38ce (plain)
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;