All Questions
1,446
questions
-1
votes
0
answers
19
views
How to use subdomains and routing after Clerk authMiddleware() deprication?
I need to code this:
TypeScript
export default authMiddleware({
publicRoutes: ['/site', '/api/uploadthing'],
async beforeAuth(auth, req) {},
async afterAuth(auth, req) {
//rewrite for ...
0
votes
0
answers
11
views
htaccess not working properly for react config
I'm making an app in MERN stack, and I have successfully deployed it on the hosting. I'm using cPanel. I have one error with the default configuration of the htaccess. With the default I get my data ...
0
votes
0
answers
12
views
route issue integrate react theme in next js
i integrate route issue when i integrate MOfi react theme in next js, i face route/layout issue.
when i login and move to dashboard acording to my layouut condition when user is found render the ...
0
votes
0
answers
20
views
I have a function in a nested component in Route /Home , I want to call the same function in route /Login without navigating to Home
What are the possible ways I can call a function from one component that is nested in one route to another route, without navigating
One approach I could think of is passing the fn as props
But what ...
0
votes
0
answers
16
views
server-side / client-side routing problem on browser reload
I have a MERN app deployed to Heroku. This is a single page application that has the front-end and back-end in the same repository.
On production, the correct view will display when I navigate to any ...
1
vote
1
answer
32
views
Updated total price when buy button is clicked in react.js
I have created a multi-page web application with products avaliable to purchase - as specificed is the task brief. However my Buy button doesn't work as it doesn't store the price of the product to be ...
0
votes
0
answers
35
views
React + FastAPI: 404 Error When Navigating to New Route in Sidebar
I'm working on a project using the Full Stack FastAPI Template. The technology stack includes:
FastAPI for the backend with SQLModel for ORM, Pydantic for data
validation, and PostgreSQL as the ...
0
votes
1
answer
18
views
Routing resets to home on refresh for Next.js Site Deployed to Firebase Hosting
I have created a static website using Next.js and Tailwind CSS with several pages, including Home, Services, and Contact. Each route correctly navigates to its respective page. Everything works fine ...
0
votes
0
answers
8
views
Application not rendering private routes [duplicate]
This are the routes in my App.jsx:
I added the /* after I received You rendered descendant (or called useRoutes()) at "/home" (under ) but the parent route path has no trailing "*"...
1
vote
2
answers
26
views
React App not rendering anything after '/'
I created an app using create-react-app and I have nested routes in my App.js. The Public component displays but nothing else does , such as /login or /home.
I added the /login just to test out a ...
0
votes
1
answer
27
views
Dynamic routing in nextjs while migrating from reactjs
import { ClientOnly } from './client';
import '../../assets/main.scss';
export function generateStaticParams() {
return [{ slug: [""] }]
}
// Default component
export default function ...
0
votes
0
answers
39
views
`router.push` not working in Next.js when clicking on submit
I'm working on a registration form in Next.js and I'm trying to redirect the user to an OTP verification page after successful registration. However, the router.push is not working as expected when ...
0
votes
0
answers
13
views
React Vite Route Guard redirection error when deploying on Netlify
I have a routing and redirection issue in my React Vite SPA when I deploy it on Netlify.
I have my routes as follows:
<Router>
<Routes>
<Route path='/' element={<RouteGuard ...
1
vote
0
answers
20
views
React Router not rendering dynamic route correctly for IndividualCard component
I'm trying to render a set of pages in React using one dynamic Router, but for some reason my data isn't being found. Here's my code:
// App.js
import { BrowserRouter as Router, Route, Routes } from '...
-1
votes
1
answer
53
views
What is the Relation between React Js and Next Js [closed]
How does Next.js simplify the process of routing and data fetching compared to React.js
Using react-router-dom to create routes in react. While just creating folders for routes in Next js was much ...