in React – can i use more than one onClick event for the same component?
i want to toggle AND rotate the image with onClick= {setToggle} and {handleRotate}. it seems i am only able to render one or the other function FAQs() { function useToggle(initialState) { const [toggleValue, setToggleValue] = useState(initialState); const toggler = () => { setToggleValue(!toggleValue); }; return [toggleValue, toggler]; } const [toggle, setToggle] = useToggle(); //setToggle function… Read More in React – can i use more than one onClick event for the same component?