import React, { useState } from 'react'; const App = () => { const [currentStep, setCurrentStep] = useState(0); const steps = [ { title: "Choose the right beans", content: "Select freshly roasted, high-quality espresso beans. Look for a medium to dark roast with a rich, complex flavor profile." }, { title: "Grind the beans", content: "Grind your beans just before brewing. Aim for a fine, consistent grind - similar to table salt." }, { title: "Dose the grounds", content: "Use about 18-20 grams of ground coffee for a double shot. Distribute evenly in the portafilter." }, { title: "Tamp the grounds", content: "Apply even pressure (about 30 lbs) when tamping to create a level bed of coffee." }, { title: "Prepare the machine", content: "Ensure your espresso machine is heated up. Purge the group head to clear any residual water." }, { title: "Pull the shot", content: "Lock in the portafilter and start the extraction. Aim for a 25-30 second pull for about 60ml of espresso." } ]; return (

The Perfect Espresso Guide

Steps

{steps.map((step, index) => (
setCurrentStep(index)} style={{ padding: '10px', marginBottom: '5px', backgroundColor: currentStep === index ? '#4a2c2a' : '#e6ccb3', color: currentStep === index ? '#ffffff' : '#4a2c2a', cursor: 'pointer', borderRadius: '5px' }} > {step.title}
))}

{steps[currentStep].title}

{steps[currentStep].content}

Enjoy your perfect espresso!

Remember, practice makes perfect. Don't be discouraged if your first attempts aren't ideal.

); }; export default App;