Search

Post types:
Categories:
🔖

Three ways to autofocus in React (that almost always work)

Read Note

Whilst accessibility means you largely want to steer clear of autofocus on web forms, sometimes it can be beneficial. In HTML, we can now reach for the handy autofocus attribute, but as I recently …

🔖

React server components tips

Read Note

A quick overview of React Server Components and some of the mental models that are useful when thinking about how they might be applied, in …

🔖

React modal using <dialog> element

Read Note

An extremely detailed overview of how to use the native <dialog> element in React to build a state-driven modal component. As ever, the answer is significantly more complicated than it would be …

Published:
Categories:
  • HTML & CSS
  • JavaScript
Tags: