R
R
RuslanSer2020-09-28 18:41:55
React
RuslanSer, 2020-09-28 18:41:55

How to install React js in Laravel without laravel artisan?

There is a separately installed laravel and react. React is installed via npx create-react-app. Yes, I know that there is a php artisan preset react command (well, or php artisan ui react).
But I need to somehow integrate React into Laravel without them. How can I do that?
I tried to change the compilation paths npm run build (node_modules/react-scripts/config/paths.js),
but I can't set the path to some /public/front/(This is in Laravel).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question