So if returning a component is the same, how would one (PHP) be more painting oneself into the corner than the other (JS)?