The app can not add the names to the filtered box.
`
const NamesList = (props) => {
const { data, filteredText } = props;
const nameslist = data
// .filter((name) => {
// // remove the names that do not match the search text
// return name.name.indexOf(filteredText) >= 0;
// })
.map((name) => {
return (
<li key={name.id} className={name.sex}>
{name.name}
</li>
);
});
The app can not add the names to the filtered box.
`
const NamesList = (props) => {
const { data, filteredText } = props;
return
export default NamesList; `