I\'m a React noob and making a ToDo list style Recipe List app. I have a functional component, Item.js, and I am using JSX and the map function to iterate through each recipe it
If you add curly braces after the fat arrow, you will have to explicitly return the JSX.
JSX
const Item = (props) => ( {props.items.map((item, index) => { return ( {item} {props.ingredients[index].map((ingredient, ingredientIndex) => { return ( {ingredient} ) }} props.edit(item, index)}>Edit props.delete(item, index)}>Delete ) } )} )
{props.ingredients[index].map((ingredient, ingredientIndex) => { return (