This repository is an opportunity to practice managing state with API calls.
This project assumes you have the related API up and running.
-
Fork/clone
-
npm install
-
npm start
-
Describe the models/Park.js file. What is it responsible for?
-
Describe these methods inside of the
App.js
file. When will each method be called? -
Why must we pass the
selectPark
function from App.js to the ParksList.js file? -
What is this line doing inside of the
ParksList.js
file? -
Take a look at how state is declared in the Park.js file. Why do we need to specify
rides
as an empty array? -
What is this line doing in the
Park.js
file? -
What is the onChange method doing in the
ParkForm.js
file? -
How does this line work in the
ParkForm.js
file? What happens if you do not use the double bang?