skip to Main Content

Reactjs – How can I apply Hashlink outside the Router without changing the logic of this code?

The errors - App.jsx import React, { useEffect, Suspense, Fragment } from "react"; import { useSelector } from "react-redux"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import RootLayout from "./pages/Root"; import FullPageScroll from "./UI/FullPageScroll"; import NestedFullPageScroll from "./UI/NestedFullPageScroll"; import HeroArea…

VIEW QUESTION

Reactjs – React: 'map' function

I'm fetching a list of objects. Using map function should display a list but there wasn't. I checked if it was saved to 'useState' via console.log(posts), and yes there was a list of objects. My only problem is I cant…

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

react-router-dom & nginx -> path /equipe/:id return index.html

I use react-router-dom in my react application like this: import {BrowserRouter, Route, Routes} from "react-router-dom"; // other code... ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( <BrowserRouter> <Routes> <Route path="equipe" element={<Equipe/>}/> <Route path="equipe/:id" element={<Equipe/>}/> {/*other route...*/} </Routes> </BrowserRouter> ); I specify that by launching my…

VIEW QUESTION
Back To Top
Search