Refactoring a Class Component to a Functional Component in React, with Hooks

Hooks were introduced a little more than two years ago, when Facebook released React 16.8 in February 2019. Many software engineering students still learn React workflows using class components before shifting over to hooks, and the transition can be a little confusing.

A Beginner’s Guide to JavaScript Event Delegation

Event delegation is often a great way to start refactoring novice JavaScript code. This allows you to place a single EventListener on a parent element that does the work of a few, or dozens, or even hundreds of EventListeners. It makes code so DRY you might as well move to Moab and start a sandpaper business.