Menu

Appointment booking slots in React without a backend
📰

Appointment booking slots in React without a backend

DEV Community: react·Marco Schulz·10 days ago
#KJNNGYdp
#devtoreact#devto#dev#date#slots
Reading 0:00
15s threshold

Most local business sites handle booking with an embed. A Calendly iframe, a Square widget, a third party button that opens a popup in someone else's brand. It works, but it loads a few hundred kilobytes of script, looks nothing like the rest of the page, and the business owner cannot change the copy without logging into another tool. The Booking slots component in Facade is my answer: the whole picking experience rendered in your own React tree, with a single callback at the end that you connect to whatever actually stores the appointment.

A 14 day date strip

A calendar grid is the wrong control for a service appointment. Nobody books a haircut for the 23rd of next month. They want "this Thursday" or "the first free Saturday". A horizontal strip of the next two weeks fits that mental model and fits a phone screen.

The strip is built on mount from today's date forward, days entries long, with 14 as the default.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.