skip to Main Content

Javascript – Getting first element from a child prop in react JS

My Images.js is as follows: import { useState, useEffect } from "react"; import axios from "axios"; import styled from "styled-components"; import ImageSlider_1 from "./ImageSlider_1"; const url = "https://hp-api.onrender.com/api/characters"; function Images() { const [isLoading, setIsLoading] = useState(true); const [isError, setIsError] =…

VIEW QUESTION
Back To Top
Search