~/talk

Create an Add to Calendar Button in React with Colby Fayock (Pt 2)

Talkat Frontend Nation 2024 · 2024-06-04..06-07· [react, frontend-architecture]
slides:none on file

Builds an interactive Add to Calendar button that generates service links with the calendar-link package and opens them in new tabs (Google, Outlook, Yahoo, Office 365, and an .ics download). Shows concrete React code: a Tailwind-styled dropdown toggled with useState, visibility-based CSS fades for transitions, icon insertion via SVG-to-JSX conversion, and an outside-click handler that uses useRef and event.composedPath to close the menu. Also notes the Popover API as an alternative.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Calendar link generation
  3. 3:10Installing calendar-link
  4. 7:03Add to Calendar UI
  5. 11:57Dropdown state with React
  6. 13:42CSS transitions
  7. 16:54Icons for UX
  8. 25:24Close dropdown on click
  9. 33:25Final demo
  10. 34:30Q&A
~/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.