๐——๐—ฎ๐˜† ๐Ÿฎ๐Ÿฏ: ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—๐—ฎ๐˜ƒ๐—ฎ๐—ฆ๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜ ๐—˜๐˜ƒ๐—ฒ๐—ป๐˜๐˜€

Day 23 of my MERN stack journey. I finished Lecture 8 from Apna College. I studied event listeners and the event object.

The event object contains data about an action.

addEventListener is the professional way to handle events.

removeEventListener stops an action.

I built a Dark Mode and Light Mode toggle.

I finished all DOM and Event basics. Tomorrow I build a mini project. I will practice clean code.

Did you use inline styles or CSS classes for your toggle? Do you use e.target for complex forms?

Source: https://dev.to/ali_hamza_589ec7b3eb6688d/day-23-of-leaning-mern-stack-5f8k