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

Reactjs – Linking to the another page, but getting output on the same page (Below) REACT

App.js :- function App() { return ( <div className="App"> <header className="App-header"> <div className="bg-slate-700 w-100 flex flex-col justify-center h-full"> <h1 className="font-bold text-white text-center justify-center "> User Authentication </h1> <form className="flex flex-col p-6 m-8 space-y-2 rounded-md bg-white "> <div className="text-cyan-500 text-center ">…

VIEW QUESTION
Back To Top
Search