Controlled form inputs are a core React concept that can be confusing for programmers new to the framework. Along with quirks like props and hooks, it’s one of the few nuances a web developer needs to understand before bringing even a basic React app to life.
Category Archives: Coding
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.
Forking My Life
A career is like climbing a mountain. There are infinite trails that lead to the summit of retirement, an overlapping web with many twists, turns, and junctions. What to do, then, when the track you’re following loses its luster? When you start thinking back to a decision, years ago, that led you to take the right fork when now you’re more interested in the left?