Daniele
danieleirsuti.dev
Daniele
@danieleirsuti.dev
I write javascript stuff to pay my rent

Member of GDG Pescara
Question for React devs: With the new use API, which isn't a hook, how are you naming your context-consuming functions?

The classic useMyContext pattern feels odd if the function is just a wrapper for use(MyContext). Does it still count as a hook, or are you using a new naming scheme?

#ReactDev
September 18, 2025 at 9:43 AM
Today, I came across this small piece of code for mocking, but I'm not sure if it's a good approach.
The environment is #JSDOM, and the testing tool is #Vitest.

The purpose of this test is to mock "window.location.assign" and "window.open"

Test experts, help.
February 12, 2025 at 1:43 PM
Exploring @astro.build and React form actions: is there a way to progressively enhance the form to restore filled values when a validation error occurs in some fields?
December 25, 2024 at 2:18 AM
Good point I remember that! but the way I propose is something different, more like a "select" but for the errors
December 21, 2024 at 2:12 PM
TIL: don't spread Request object ✅
December 16, 2024 at 2:25 PM
I see you sitting on the edge to not disturbing him… A daily fight! 😂
November 16, 2024 at 11:14 AM
Our Devfest is different! #pescara #gdg
November 9, 2024 at 1:08 PM