What is the major difference in React (web app) and PHP being not a web app - or how do I decide what to use

#ELI5