React restaurant ordering page

Kebab

The cart is in one place

About the project

Kebab is an ordering page for a kebab restaurant: the menu, a sidebar cart and a checkout preview. The cart lives in a React context with a reducer, because three separate parts of the tree need it at once — the add buttons on each product, the counter in the navbar and the panel that lists what you picked. Passing it down as props would have meant threading state through every layer between them.

What it demonstrates

Stack

Demo

Kebab, scrolling demo