If we would start webdev from scratch and had to choose between:
- CSS vs css-in-js
- REST vs GraphQL
- Templates vs JSX
No sane person would choose the first options.
I think it's a fair point that a "new web" would be all written in a single language. However the best bit what we have is you don't need to know CSS, JS & HTML to make a webpage & doing it in whatever works is totally ok.
JSX -> Still need to understand the HTML bits. CSS in JS -> still need to understand the CSS bits. GraphQL-> still need to understand the HTTP verbs and thus implicit REST
The world of frontend dev is a hype driven world, this is why it's not actually moving forward, it's just a complete throwaway and start over each cycle. 3 years from now and we'll be asking what was 'css-in-js, jsx'?
No, you are sane. This is about engineering: every device is designed for a purpose and REST is about leveraging HTTP. GraphQL use HTTP like a socket, moving the swindle toward client-server paradigm. As long as this decision is appropriate to solve your problem... is it?
FFS. Stefan, (and just picking up on the most blatantly incorrect thing) how is that in 2018 otherwise smart children don't understand what REST is??? #mindboggling