Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react join array of components

<>
{objects.map(obj =>
  <Component prop1={obj.prop1} prop2={obj.prop1} />
).reduce((prev, curr) => <>{prev}<p>any delimeter</p>{curr}</>)
}
</>
 
PREVIOUS NEXT
Tagged: #react #join #array #components
ADD COMMENT
Topic
Name
4+9 =