<div> {names.filter(name => name.includes('J')).map(filteredName => ( <li> {filteredName} </li> ))} </div>