Feel like everyone and the world are moving forward except me. I do investment on big tech companies as i know i'm still not good enough to join their company so at least my money can participate this forwarding world.
220. Module Introduction - just intro 221. Building the checkout container just create Checkout/checkoutSummary JS files 222. Setting up Routing & Routes < Switch > < Route path = "/checkout" component = { Checkout } /> < Route path = "/" exact component = { BurgerBuilder } /> </ Switch > order is matter and use <Switch> shows only route 223. Navigating to the checkout page this . props . history . push ( "/checkout" ); yarn add react-router-app and cover {BrowserRouter} in index.js and then work on purchaseContinueHandler(that push('/checkout')) 224. Navigating back & to next page checkoutCancelled = () => { this . props . history . goBack (); }; checkoutContinued = () => { this . props . history . replace ( "/checkout/contact-data" ); }; pass props on each buttons with those 2 functions 225. Passing Ingredients...
Comments
Post a Comment