Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. If you're reading this, you've probably already tried AI coding tools.

  2. Migrating this site from Gatsby v2 to Astro v5 was a big success!

  3. Use Case For a search feature, we're storing the 100 most recently used ("MRU") search terms.

  4. Recently, there was an exchange at work that bothered me.

  5. Part 1: Introduction to useReducer and basic reducer patterns Part 2: Reducers with actions So far in parts 1 and 2 of this series, we've learned that: The primary job of a reducer is to produce a new state.

  6. Part 1: Introduction to useReducer and basic reducer patterns In part 1, we looked at reducer patterns that didn't use any parameters or only used the current state to calculate the next state.

  7. I see many people, especially those new to React hooks, shy away from useReducer in favor of multiple useState calls.

  8. Formatting Dates in JavaScript

    Do you automatically reach for Moment.js or date-fns when formatting dates?

  9. Use Case Suppose you have a JavaScript object received from a source (e.g., retrieved from an API): const restaurant = { name: "Nong's Khao Man Gai", address: "609 SE Ankeny St", phone: "503-740-2907", secretKeyLocation: "somewhere", }; You want…

  10. Eulogy for Lola

    Lola.