current will have access to the required DOM node. Step 2. Add a click event listener. We can add an event listener inside useEffect . Copy.
確定! 回上一頁