~/talk

Building Interactive Async UI with React 19 and Ariakit

Talkat Frontend Nation 2025 · 2025-06-03..06-05· [react, frontend-architecture]
slides:none on file

A demo converts a fragile custom account selector into an accessible, interactive component using React 19, Next.js App Router, and Ariakit: replace nameless divs with Ariakit primitives for keyboard, click-outside and smart popover positioning; use useTransition & useOptimistic for synced loading spinners and automatic optimistic rollback; call server functions replacing API endpoints to set cookies, revalidate server components and emit server-side toasts — fewer lines of client code and no accessibility boilerplate.

AI-written summary · about

  1. 0:00Async UI with React 19 and Ariakit
  2. 1:04Problematic account selector demo
  3. 2:29Challenges in accessible UI
  4. 5:20Ariakit for accessible components
  5. 8:12Replacing divs with Ariakit primitives
  6. 11:26Ariakit benefits for UI
  7. 11:47Async ops with React 19 transitions
  8. 13:17Server functions for API calls
  9. 14:23Toast logic for cross-page navigation
  10. 15:27Optimistic updates with useOptimistic
  11. 17:38Error handling in async UI
  12. 18:01Logout button with server function
  13. 19:06Login form with React 19 actions
  14. 20:11Improved account selector demo
  15. 21:35Key takeaways
  16. 22:38Resources and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.