score:1

Accepted answer
style={{
  // set display style
  display: ingredientsId[recipe.id] ? "block" : "none"
}}

Related Query

More Query from same tag