Assigning multiple refs to a component.
My last post talked about creating refs in React. There are times when working with React, however, that you might need to assign two refs to the same Component or element.... »
My last post talked about creating refs in React. There are times when working with React, however, that you might need to assign two refs to the same Component or element.... »
Refs in React give us a way to get a reference to an actual underlying DOM node in a component or the component's instance. With the introduction of hooks (which I love) and useRef, it can get confusing sometimes about which type of ref to use and how to go about it.... »
Randy Coulman had a recent series of posts related to organizing Redux related code which was a great read and you should really go take a moment to look them... »
Having been using ES6 for some time now, I've been seemingly immune to the pernicious ES5 related for-loop+async scoping problem. Every Javascript developer has encountered this at some point;... »
As I've been playing around with React and more specifically Redux these last couple of weeks, the usefulness and joy of ES6's new rest/spread '...' operator and default... »
Recursion is a control flow construct. It allows us to have a function call itself and repeat an operation until it arrives at a result. Many functional languages are built... »
So, since I've been swamped with work recently and haven't posted much, I'd like to get back into the swing of things and throw up a simple EventEmitter implementation I... »
In this final post on approaching functional programming with Javascript, we're taking our efforts from Part 1 and Part 2, where we're finalizing our JSON output into an object that... »
In our previous post on functional programming we began introducing some functional themes by working through requirements for processing a typical JSON response. Here's a recap of our requirements: filter... »
After reading about currying, partial application and other functional programming techniques, some developers are left wondering when, exactly, they would ever use those methods; and why would they want to?... »