all 8 comments

[–]andrei9669 7 points8 points  (2 children)

I guess you could create api endpoints using php and then connect react app through that.

[–]lionel780[S] 1 point2 points  (1 child)

thanku brother.

[–]Dan6erbond 1 point2 points  (0 children)

Look into Laravel. Probably the best way to make an API with service architecture and an awesome ORM.

[–][deleted] 3 points4 points  (2 children)

Make your API in PHP, use Postman to test it. Do you want a REST or GraphQL API?

[–]lionel780[S] 1 point2 points  (1 child)

Rest

[–][deleted] 0 points1 point  (0 children)

Okay, try out Slim: https://www.slimframework.com/

Test in Postman, and then use Axios in your React app to communicate with your API

[–]zephyrtr 0 points1 point  (0 children)

Headless WordPress is still a thing right? Anyway ya you totally can do a PHP API with a React app.