I have an array of objects being passed as props into a child component, where I would like to display items in a list.
The data props.itemAssociations looks like this:
[
  {source: "hello world", target: "my item"},
  {source: "my item", target: "hello world"}
]
Then I'm trying to create list items from the prop:
  let options = props.itemAssociations.map(items =>
    items.forEach((item, index) => (
      <li key={index} value={item.source}>
        {item.source}
      </li>
    ))
  );
This is resulting in items.forEach is not a function. Any tips/solutions to this error is being thrown?
 
    