CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Bookings state

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Dominant language
JavaScript
Stars
1
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**Instructions:**

In the `` component, declare a new state `bookings` with the corresponding setter function `setBookings` to hold the `FakeBookings` data. Instead of passing `FakeBookings` directly to the `` 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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.