Javascript – How to remove the current user while fetching all the users from the database in react?
How can I use ternary operator ( ? true : false ) or something else to remove the currrent logged in user from this list? const [users,setUsers] = useState(""); useEffect(() => { axios.get("http://localhost:3000/api/v1/user/bulk?filter=" + filter) .then(response => { setUsers(response.data.user) })…