Javascript – when i add the event listener to my react app everything disappears idk what's the problem
i want to add a onclick event to my navbar button but when i add the eventistener everything disappears. here's my code: import React from "react"; import {Bars3Icon} from '@heroicons/react/24/solid' const Navbar = () => { let btn = document.querySelector('icon');…