Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

successdav's avatar

How to Integrate ReactJs Theme to an already exisiting Laravel Project?

I bought a theme developed using ReactJs and typescript. How do I integrate this into my already existing Laravel theme?

Here's what I have done so far

  1. I copied the dependences from package.json to that which is already available on my Laravel project.
  2. run npn install
  3. Copied the components from src folder to laravel/resources/js directory.
  4. Other files in the theme root folder to my Laravel project root folder

and when I try to compile, I hit an error. the theme breaks with the error compile error getStaticProps: GetStaticProps = async ({ locale })

0 likes
2 replies
successdav's avatar

Okay maybe I dint put the question well After building a react project with creat react app how do I merge it into an existing laravel project?

Please or to participate in this conversation.