Feature fetch bookings
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 58/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Inizia nel componente e confronta la sua origine dati attuale con data/fakeBookings.json. Segui le indicazioni dell'issue su useEffect, fetch() e https://cyf-react.glitch.me, quindi verifica che i dati dei clienti vengano ancora visualizzati correttamente nella tabella e che il messaggio della console del primo render venga visualizzato una volta dopo l'aggiornamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
16. Load bookings remotely
Instructions:
Instead of getting the existing bookings from the file data/fakeBookings.json, we will get and load the bookings from a remote API. In the <Bookings /> component, use the React function useEffect to console.log() some text only when the page first renders on the screen. Verify that when you refresh the page, the text appears once in the console. Then, in the useEffect function, use the fetch() function to get data from https://cyf-react.glitch.me.
Try to pair or mob on this feature.
Hints:
- Replace
FakeBookingsin the bookings state and initialise it with[](because we haven't fetched any results yet!) - After calling the
fetch()function, use.then()to handle the response. Try looking at your Pokemon app that you worked on in class for an example - When the response comes back, use
setBookingsto update the results
Test:
- Verify the customers data are still displayed correctly in the table.
- Lingua principale
- JavaScript
- Stelle
- 1
- Fork
- 28
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeYourFuture/React-Module-Project
-
Feature Error Message Aperta♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Loading Message Aperta🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Search State Aperta🐂 Size Medium 📅 Week 3 🧩 Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Active Row Aperta🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Bookings state Aperta🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
Tutte le issue di CodeYourFuture/React-Module-Project
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
web-platform-tests/interop#1455 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
corsairdev/corsair#1764 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100