Feature fetch bookings
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 58/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
Comienza en el componente y compara su fuente de datos actual con data/fakeBookings.json. Sigue las indicaciones del issue sobre useEffect, fetch() y https://cyf-react.glitch.me; después, verifica que los datos de los clientes sigan mostrándose correctamente en la tabla y que el mensaje de la consola del primer renderizado aparezca una vez después de actualizar.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1
- Forks
- 28
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeYourFuture/React-Module-Project
-
Feature Error Message Abierto♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Loading Message Abierto🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Search State Abierto🐂 Size Medium 📅 Week 3 🧩 Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Active Row Abierto🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Bookings state Abierto🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Todos los issues de CodeYourFuture/React-Module-Project
Issues similares
-
ai-observability bug team/ai-observability
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AllTheMods/ATM-10-L#19 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SignalK/n2k-signalk#345 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
JuliaPluto/PlutoPlotly.jl#72 ·