S
S
semki0962020-02-09 20:42:38
Laravel
semki096, 2020-02-09 20:42:38

How to build Laravel + React component architecture?

I figured out how to add the Reactjs component to Laravel (by default, Lara adds the Example component). But if my component consists of several files, then it will probably be a folder with files. But what about dependencies? Package.json should also be in the folder with this component? Or should these dependencies be written in Package.json at the root of the site? And in general, is this the right architecture? Or do you need to move everything to the frontend? I would be grateful for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-02-13
@XyM4uK

As far as I know, react is for the front, laravel is for the back. at least in my project everything is so divided, requests via api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question