Answers for "react conditional arrow map array"

0

react conditional arrow map array

function App(){
    const items = useFetch()
    return (
        <div>
            {items.map( (item) => {
                if (item[1]==='something'){
                    return (
                        <li>{item[2]}</li>
                    )
                }
            })}
        </div>
    )
}
Posted by: Guest on June-13-2021

Browse Popular Code Answers by Language