score:1

const NewBox = () => (
  <span>
   {suggestions.map(value => (
     <Option value={value} />
   ))}
  </span>
)


const Option = props => 
  <div className="divBorder"> {JSON.stringify(props)} </div>



score:3

React.createElement(Option, { value: suggestions[a] }, null)

Related Query

More Query from same tag