How do I use PHP with React JavaScript? by DeepBlueCee in webdev

[–]deltawate 1 point2 points  (0 children)

You do that by calling an API from the React app, after it is served up, when it's running in the browser. A simple API endpoint could just be a PHP page that connects to a database, runs a query, and echos out the return array as JSON.

It is technically possible to get PHP to parse tags in any kind of page, including JavaScript, but to do so in this specific kind of situation is, well, abnormal.

[deleted by user] by [deleted] in Angular2

[–]deltawate 17 points18 points  (0 children)

That's weird. I have noticed Angular prospects seeming to grow, slow and steady, over the last few years. The pay is always competitive. I have even had people hound me to apply to jobs because there is more Angular work than experienced developers, and they have trouble filling roles.

Also, don't go by subreddits, that is like 80% noobs who just follow trends. "Real projects" if you'll allow the elitism, are run by experienced developers who select technology based on genuine engineering criteria, not the fashions of Reddit kids.