0

I have an old php web application, with very bad code. While a lot of it just has html and ajax calls in the, the wrapper is still php.

I want to develop the new modules in react, and slowly replace the old php modules one by one with react; Instead of doing everything from scratch.

What would be the best way to merge these?

Should I deploy the react modules else where, and embed using ajax calls with $("Div_ID").html()?

Should I create each react module as a separate app and then do include('index.html'); in php in each module's index.php

Can someone please just point me to a right direction?

asked Apr 5, 2019 at 16:19

1 Answer 1

1

if you wanna do something good, you should separate the client and the server, php to manage all data access, and react to manage all the data received.

you took a look to vue.js? maybe it fit better with php and those things that you want make

answered Apr 6, 2019 at 17:33
1
  • Yes, thats the plan, but we dont have the time to get everything migrated to js first, and then start new modules. Need it to happen simultaneously / independently. Commented Apr 8, 2019 at 11:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.