Understanding Closures in JavaScript
Closures are one of the most powerful and often misunderstood features of JavaScript. A closure gives you access to an outer function’s scope from an inner function. function createCounter() {…
Thoughts on daily dev coding
Closures are one of the most powerful and often misunderstood features of JavaScript. A closure gives you access to an outer function’s scope from an inner function. function createCounter() {…
When managing state in React, most developers reach for useState by default. But for non-trivial state logic, useReducer is often the better choice. useReducer centralizes state transitions into a single…
CSS layout has come a long way from floats and clearfixes. Modern CSS gives us Grid and Flexbox — two layout systems that solve problems we used to hack around…