skip to Main Content

Reactjs – How can i show a loading spin while images are being fetched from api?

App.jsx import React, { useState } from "react"; import Pokemon from "./Pokemon"; import Pagination from "./Pagination"; import PokemonList from "./PokemonList"; function App() { const [nextPage, setnextPage] = useState( "https://pokeapi.co/api/v2/pokemon?offset=20&limit=20" ); const [previousPage, setPreviousPage] = useState(); const [CurrentPage, setCurrentPage] = useState(…

VIEW QUESTION
Back To Top
Search