const PRODUCTS = [ { id: 1, name: "Potato chips", description: "Deliciousness" }, { id: 2, name: "Glue", description: "Do not smell" } ] function Master(props) { return PRODUCTS.map(product => ( ) } function Details(props) { return (

{props.product.name}

{props.product.description}

) } function Page() { const [selectedProduct, setSelectedProduct] = useState({}) return (
) }