chantastic

chantastic @chantastic

About: software explorer

Joined:
Dec 24, 2017

chantastic
articles - 39 total

A Universal Terminal alias for bun, pnpm, npm, and yarn.

I've typed npm for the last time. As JavaScript developers, we have four package managers to choose...

Learn More 4 0Sep 27 '23

Storybook Actions in Action

Let's talk about console.log-driven development. We all do it. So, instead of fighting it, let's...

Learn More 1 0Aug 25 '23

Polymorphic as prop in Astro

Astro has dynamic tags — a way to take an element or component as a prop. I had trouble finding the...

Learn More 2 0Aug 31 '23

Doc blocks for design system documentation

If you document design systems, I'm about to save you a ton of time. Because Storybook comes with...

Learn More 1 1Aug 10 '23

Add Lucide Icons to Astro

There's no first-class Lucide integration for Astro. But making a custom one isn't too hard. This is...

Learn More 6 3Aug 1 '23

Fix VS Code Explorer for Content Projects

The VS Code explorer displays folders at the top of a directory. This is a common hierarchy that I...

Learn More 5 2Jul 25 '23

Embed YouTube videos responsively

YouTube makes it easy to copy-paste a video embed. LOVE THAT! But, the default embed isn't...

Learn More 3 1Jul 13 '23

Concurrent Mode is Dead. Long live Concurrent React

Three years ago Dan Abramov introduced Suspense and Async Rendering with React at JSConf Iceland...

Learn More 3 0Jun 10 '21

Comprehending YAML

YAML is a little clever for my taste but I'm starting to get it. Before yesterday's post, I had no...

Learn More 4 0Feb 17 '21

A Non-Comprehensive Guide to YAML for Folks Who Like JSON Just Fine

YAML is a human friendly data serialization standard for all programming...

Learn More 6 0Feb 12 '21

Import Both Default and Named Exports

We can mix and match import styles to keep code tidy and direct. The code below imports both the...

Learn More 4 0Feb 6 '21

Import Default From Named Export

Importing default can be nuanced. There are just so many ways to do it. I like to think of default...

Learn More 0 0Feb 4 '21

Import Default Export

There can only be one default export. export default function Highlander() {} Enter...

Learn More 0 0Feb 3 '21

Import All Named Exports into One Variable

We can import all of a JavaScript module's contents into a single variable with * as. import * as...

Learn More 3 0Feb 2 '21

Schedule Netlify Builds with GitHub Actions, Cron, and Webhooks

Instructions Add this GitHub Action to your repo at .github/workflows/schedule-netlify-bui...

Learn More 9 16Jan 29 '21

Import and Rename Named Exports

JavaScript Modules have a syntax for remaning named exports, at import. import { exportedName as...

Learn More 0 0Feb 2 '21

Import Modules for Side Effects

Modules — in JavaScript — can be imported strictly for their side effects. import...

Learn More 0 0Feb 2 '21

Import Named Exports

By default, expressions and assignments declared inside a module aren't available outside of that...

Learn More 0 0Feb 2 '21

Skip React.useEffect by Providing an Inputs Array

By default, React.useEffect runs every time that component renders. When we combine React.useEffect...

Learn More 8 0Dec 12 '19

Extract Custom Hooks

First, what's a Hook? Hooks are the use-prefixed functions that we've been using — useState and useE...

Learn More 8 0Dec 8 '19

Connect useEffect and useState to Update Components with Data

We have one way to update (or re-render) a component. It's React.useState. When we want to render ou...

Learn More 16 2Dec 7 '19

Fetch Data with React.useEffect()

Things happen outside of React. It's just a fact of life. React gives us a single function for conne...

Learn More 44 0Dec 7 '19

Render Conditionally with a Ternary

When you need to render JSX conditionally, you need to use a ternary operator. There are no if/else...

Learn More 11 0Dec 6 '19

Track State with React.useState

To make state dynamic, we just need a function to update it. React gives us this function via React....

Learn More 10 1Dec 4 '19

Make React Components as Re-usable as HTML Elements

Out of the box, components are less flexible and re-usable than raw HTML Elements. But we can fix tha...

Learn More 11 1Dec 3 '19

What are Props in React?

Props are how we configure and customize our React Components. They're just like function arguments b...

Learn More 10 0Dec 3 '19

What's a React Component?

A React Component is a function that returns a React Element. What's a React Element? Gre...

Learn More 23 4Dec 3 '19

Learn React in 25 Short Lessons — React Holiday 2019 ⚛️🎄

Hey React Friends, I'm firing up the third season of React Holiday. This year, I'm bringing it to d...

Learn More 139 0Dec 2 '19

Summary: "Suspense for Data Fetching (Experimental)"

This is a summary of key points in this reactjs.org doc What Is Suspense, Exactly? Suspe...

Learn More 8 0Nov 1 '19

Summary: "Introducing Concurrent Mode"

This is a summary of key points in this reactjs.org doc What Is Concurrent Mode? React's...

Learn More 39 0Nov 1 '19