Cinema seat booking
Book your seats: the server renders the page, and after every click the browser re-renders only the changed parts with the same async JSX components.
Every row of seats and the booking summary are async components built with jsx-async-runtime, which load their data from this.store. On the server, the store reads a cookie; in the browser, it fetches the API.
Other guests keep booking seats, so the browser refreshes the seats every 20 seconds. Without JavaScript, every seat is a button in a plain form, and the server renders the whole page.
- Front €8.00
- Standard €11.00
- Premium €14.00
- Selected
- Taken
- Yours