Accepted answer

Yes, create a map function to return the strings into DOM elements inside the ul. React does require a unique key prop to help keep track of these components, but for simplicity, in this case, you can use the array index.

{ (item, i) => <li key={i} >{ item }</li> ) }


You can use a nested map function.

 const renderOut = => {
 return this.state.keyToFind.includes(;
  }).map((obj, idx) => {
   return (
     <div key={idx}>
         { => <li key={item}>{item}</li>)}

Related Query

More Query from same tag