16 questions
0
votes
0
answers
36
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
1
answer
376
views
Laravel's React Breeze ,Always can't run : npm run dev
The Vite doesn't work
Os:CentOs7
Laravel: 9.26.1
node: v16.17.0
npm: 8.15.0
I would like use new Laravel Project with React.js.
And try the plug-in Breeze for Authentication
I use the command
composer ...
1
vote
1
answer
74
views
No `render` method found on the returned component instance: you may have forgotten to define `render` React-Laravel
When the data returning from "TableRow" Component. I'm getting below error.
1
vote
1
answer
201
views
Cannot read properties of undefined (reading 'setState'), Laravel-React
enter image description here
class Table extends Component {
constructor(props) {
super(props);
this.state = {
employee: [],
}
}
//Life Sycle ...
2
votes
0
answers
2k
views
Laravel + react + inertia - components rendering twice
Hi so I have a problem with React components rendering twice in Laravel project. I made clean project, doing step by step from Laravel doc, installation (https://laravel.com/docs/9.x/installation#...
1
vote
1
answer
65
views
How to understand a React file
I am using React in Laravel and I found a problem that I can't refresh or reload a page in React. So to solve this problem I found many suggestions like use historyApiFallback, 404 page and many other ...
0
votes
1
answer
520
views
How do I set the target location for a React Lazy chunk using Laravel Mix?
So my React Lazy setup works great, I use Laravel Mix instead of the normale Webpack config. But after running, the (named) chunks are all put in the public folder, instead of the public/js folder. ...
3
votes
0
answers
2k
views
91 packages are looking for funding while installing react in laravel 8
I'm trying to install react in laravel 8.
I have tried these solutions but not working for me here
But when I run the following command:
php artisan ui react
It says (Please run "npm install &...
0
votes
1
answer
752
views
React with Laravel deployment Cache issue
I have created an app with react and laravel, whenever made an update and deploy it, the client browser does not update the cahnges, it always load from the cache. When I am using in an incognito ...
1
vote
2
answers
316
views
Redux-thunk dispatch function doesn't work on Laravel
I'm using React-Laravel for my project.
The problem is when I tried to use redux-thunk for the asynchronous dispatch function.
My dispatch function won't get executed.
Please do help me figure out ...
0
votes
0
answers
192
views
Module build failed: SyntaxError When i try for asyncComponent in Laravel + React
I want to implement asyncComponent in laravel + react. Everything work Good before i tried asyncComponent.
When i try that return error :
Code :
import asyncComponent from '../component/...
0
votes
1
answer
339
views
Laravel - React component Does not like importing comps in other comps
Hey I'm super new to Laravel and finally was able to get a react component to show up on the screen. however when I import another component for example.
import ReactDOM from "react-dom"
import ...
1
vote
1
answer
2k
views
Refresh page React-Laravel
I have a problem with my front-end in Reactjs(my back-end is in Laravel).
When I reload a pages, I have this error "Sorry, the page you are looking for could not be found."
I don't know why and how ...
0
votes
1
answer
1k
views
How to set up React-Laravel project with out php artisan serve?
I have created a react-laravel project using laravel-mix. Right now I am run project using
npm run watch
php artisan serve
So by this, I access project by : http://localhost:8000
I have also worked in ...
1
vote
2
answers
1k
views
Pros and cons of using react-laravel over vanilla react and laravel
We're planning to build an application using ReactJs as our frontend and laravel as our backend(REST API).
As we were doing some researches about how to integrate these two, we've encountered the ...
0
votes
3
answers
3k
views
react-laravel Unexpected token
I am trying to get react-laravel working. I have installed everything correctly (v8js etc) but I keep getting:
V8Js::executeString():18903: SyntaxError: Unexpected token <
The problem seems to be ...