You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the <Bookings /> component, declare a new state bookings with the corresponding setter function setBookings to hold the FakeBookings data. Instead of passing FakeBookings directly to the <SearchResults /> component, pass the new bookings state variable.
Hint: The new bookings state should be initialised with the FakeBookings variable.
Test:
The bookings are still rendered correctly in the page.
The text was updated successfully, but these errors were encountered:
From React-Module-Project created by areebsattar: areebsattar/React-Module-Project#16
From React-Module-Project created by SallyMcGrath: CodeYourFuture/React-Module-Project#14
Instructions:
In the
<Bookings />
component, declare a new statebookings
with the corresponding setter functionsetBookings
to hold theFakeBookings
data. Instead of passingFakeBookings
directly to the<SearchResults />
component, pass the newbookings
state variable.Hint: The new
bookings
state should be initialised with theFakeBookings
variable.Test:
The text was updated successfully, but these errors were encountered: