All Questions
1,429 questions
0
votes
1
answer
27
views
Is my nested route configuration with authentication protection following best practices ? or anything i can do to improve for better practices [closed]
I've implemented a React application with React Router v6 featuring nested routes, authentication protection via AuthProvider and ProtectedRoute components, and various layout components. I'm ...
0
votes
1
answer
59
views
Hi i am using next.js (15.1.7) with react (19.0.0) for the file which is getting used for dynamic route when i create a build i get error
Here's my pacakge.json
{
"name": "complex-routing-app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "...
1
vote
0
answers
20
views
How to Dynamically Manage Route Paths in React to Avoid Manual Updates Across the Application?
I have a Laravel backend with defined routes like this:
Route::get('task-list', [TaskController::class, 'taskListInfo']);
Route::post('task-save', [TaskController::class, 'taskInfoStore']);
Route::put(...
0
votes
0
answers
54
views
Error: The default export is not a React Component in "/page"
I am getting this error after I moved my page.tsx from app directory to the group route that I created in the same app directory. The reason why I moved this home page to group route because I want to ...
0
votes
0
answers
40
views
Can I prevent the Next router from pushing back in history without any effects?
I have a simple code preventing a page with a form from closing when the form filling is started but isn't finished. Unfortunately, when a user tries to move to the previous page with the browser's ...
0
votes
1
answer
78
views
Direct Access Routes in Next.js Return 404, but Work Fine in Development Environment
Problem:
In a Next.js application hosted on Azure App Service, accessing routes directly (e.g., /vehicle-details) results in a 404 Not Found error.
However, navigating to these same routes via ...
1
vote
1
answer
106
views
AWS Amplify React App Deployment giving false 404 in console when refreshing paging
I am testing a deployment of a Web App on AWS Amplify and am getting a false 404 reply in console even though the page is showing correctly when you trigger a refresh from the browser.
Format for all ...
0
votes
1
answer
49
views
React createBrowserRouter paths not working when refreshing the page after deploying the app to GitHub
I made a React/Vite fitness website and used createBrowserRouter to create all the paths, everything worked perfectly fine until I deployed the website to GitHub pages. An issue occurred:
Each time I ...
1
vote
0
answers
67
views
Always render an intercepted route in a modal even if navigating to the url directly in next.js
I am using the Parellel routes and route Interception to create a user experience that opens a form (the /new route) in a modal for the user to create their new thing. The route is /posts/new.
However,...
-5
votes
1
answer
84
views
is there a way to pass down props from parent component to child component
https://github.com/89missions/reactproblem/issues/1 I have posted all three files here please help.
react-dom.development.js:4312 Uncaught Type Error: props.UserName is not a function
at userValue (...
0
votes
0
answers
26
views
Pass prop conditionally in react while handling routing
In React app, I render various components following app.tsx rendering. I would like to know if there is a possible way to pass such prop as an optional while managing routes. I get below error. This ...
0
votes
1
answer
224
views
Astro Project Renders Blank Page on Cloudflare with No Console Errors
Problem Description
I've completed my Astro project and it works fine locally in both development and build modes. However, when I deploy it to Cloudflare, I'm getting a blank page with no console ...
1
vote
1
answer
77
views
I cannot Route the pages in React
I have tried to link some pages in React. I have installed react-route-dom, I tried some solutions online but I still get the same error. Any help will be appreciated.
This is the code in my index.js
...
0
votes
2
answers
28
views
how can redirect to absolute url (to subdomain) with react-router-dom
let me explain clearly what I want to do?
row | current url | redirect to | component
1 | localhost:3000/panel | localhost:3000/en/...
0
votes
0
answers
47
views
React-Native Project: Navigation Issue
In my React-Native project, written in js, I'm having an issue with my routes. I'm using useNavigation and NavigationContainer from @react, initializing these routes using linking in the ...