Third Tool
In this section, we will add further interactivity to your streamed components.
Let's generate two more components with v0, a "confirming order" and "order confirmed" component. We can use this example of confirming order, and example of order confirmed. Add them to your project, calling them confirming-order
and order-confirmed
respectively.
Install the "confirming order" component with the following command, naming it ConfirmingOrder
.
And install the "order confirmed" component with the following command, naming it OrderConfirmed
.
Add a new tool to handle confirming an order.
Update your ProductCard
component to handle selection.
Update the <OrderConfirmed />
component to display product information.
Head back to the browser. Now ask for "Apple Products", select a product and then order it.