- Callback functions as props
- Changing parent state
Today we'll continue to build our app for the pet adoption center, Flatapets, that displays a list of pets available for adoption at this pet adoption center. We will be adding a feature to this app that will allow the user to click a button to adopt a pet. Once a pet has been adopted, that pet should no longer be available for adoption. We will be using the concepts learned in this lecture to build out this new feature in this app.
- Run
npm install
in your terminal to install the dependencies for this React app. - Run
npm start
in your terminal to run this React app in the browser. If your browser does not automatically open the page for you, open http://localhost:3000 to view it in your browser.