JavaScript logical operators and the new nullish coalescing operator
The nullish coalescing operator is the newest addition to the JavaScript logical operator family. It was published in 2020.
Sort an array with another array
Here’s how to use the order or a config array to sort another array, using the JavaScript language.
Match text between two markers with regex
Here’s a short guide to lookahead and lookbehind assertions, and how to match text between two markers.
Hyphenating with CSS
This post looks into hyphenation with pure CSS.
Import text files as strings in JavaScript
Import a text file as a string without calling `fetch()` or filesystem APIs in your application code. This is useful for HTML templates, shaders, SQL, GraphQL, Markdown, and code examples.
Reduce: the multitool of JavaScript array manipulation
A beginner-friendly guide into the JavaScript’s reduce method. Spiced up with analogies and examples.
Dealing with URL parameters in JavaScript/TypeScript
How to extract parameters from a URL and how to make new URLs, the official way, without combining strings or using 3rd party dependencies.
Understanding React children
The `children` prop lets a component render the JSX placed between its opening and closing tags. React also provides a `Children` API for the less common cases where a component needs to inspect or change that JSX.
Currying in JavaScript
Currying explained simply with a few examples.
Build a simple, isolated demo component with Gatsby
Here’s how to build a really simple code demo iframe with Gatsby, which lives outside the site’s main CSS scope.