Questions tagged [react-laravel]
17 questions
3
votes
0 answers
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 && npm run dev" to compile your fresh scaffolding.)
And…

Kaleem Shoukat
- 811
- 6
- 14
1
vote
1 answer
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.

Chenaya Ruheli
- 25
- 4
1
vote
1 answer
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 Methord
componentDidMount() {
…

Chenaya Ruheli
- 25
- 4
1
vote
0 answers
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#installation-via-composer) and starter kits…

wojtek1904
- 11
- 4
1
vote
1 answer
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 ways But I found none of them useful to me…

CoderBoy
- 25
- 4
1
vote
2 answers
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 this problem.
I have already tried to use promise or…

Michael Harley
- 831
- 1
- 9
- 20
1
vote
1 answer
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 resolve this.
It's in my Router ?
Thanks for your…

T.Monsegu
- 59
- 1
- 2
- 14
1
vote
2 answers
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 library react-laravel.
Now I wanna know what are the…

Mani Shooshtari
- 760
- 1
- 6
- 19
0
votes
0 answers
Sitemap generation of react app integrated in laravel using react-snap
I am using react.js integrated in laravel and when I make a postbuild using react snap it is showing me errors that the pages are not found.
What I have is I have app.blade.php in my resources/views which serves as public/index.html and app.jsx in…
0
votes
0 answers
can not conenct to a private channel from react app to laravel websockets
I have a project made by laravel and react
I want to have a user to user chat app in my project
I created a private channel in laravel now I want to connect to this channel from my react app
but it gives me the following…

BesmellahBasam
- 1
- 1
0
votes
1 answer
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 create-project laravel/laravel new-project
php…

Bennett
- 1
- 2
0
votes
1 answer
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. The site works great, but just for organization I…

Ramon
- 1
- 1
0
votes
1 answer
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 window or cleared the browser cache the changes…

vicky KG
- 1
- 1
0
votes
0 answers
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/asyncComponent';
const Home = asyncComponent(() =>…

Dhruv Raval
- 1,535
- 1
- 8
- 15
0
votes
1 answer
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 SelectInput from "../components/SelectInput"
import…

Pwntastic
- 433
- 1
- 8
- 20