/
7.2-url_params_from_Sale_carry_data

7.2-url_params_from_Sale_carry_data

When a Sale item is clicked we need to decide what info is required to send across to the <Calculator>

Sale.jsx

App.jsx

In the route we tell it what to render for a given URL pattern

Calculator.jsx

In the calculateSaleValues() we need to check if the param exists because this component is used as part of the landing page

We also use a useEffect to monitor changes in the params