Create an Add to Calendar Button in React with Colby Fayock (Pt 2)
summary
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
chapters (10)
- 0:00Introduction
- 1:46Calendar link generation
- 3:10Installing calendar-link
- 7:03Add to Calendar UI
- 11:57Dropdown state with React
- 13:42CSS transitions
- 16:54Icons for UX
- 25:24Close dropdown on click
- 33:25Final demo
- 34:30Q&A
related talks
46mUsing Reactjs to solve our daily problems
32mDesigning React Interfaces: A Journey Through Modern Styling Techniques
35mBuilding reusable UI libraries with React
38mWriting highly reusable React components
34mBuilding Accessible Components in React
44mModern React Applications
26mBuilding Interactive Async UI with React 19 and Ariakit
24m2025 10 03 03 AURORA SCHARFF CONGRESO REACT ALICANTE The international React js conference in Spa
