Because I can do SSR with React. Single codebase for both backend and frontend.
You can SSR Web Components too and still retain isomorphic JavaScript, hell you could use TypeScript on the front end and back end too.
My use of React is because of two things:
How do Web Components support these patterns ?
This isn’t a referendum against your use of React. Use whatever library suits the project but be aware JavaScript libraries come and go but W3C spec tends to stick around. Div still going strong after all these years!
But to answer your questions, Custom Elements still have lifecycle hooks and well fetch API is available in evergreen browsers.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because I can do SSR with React. Single codebase for both backend and frontend.
You can SSR Web Components too and still retain isomorphic JavaScript, hell you could use TypeScript on the front end and back end too.
My use of React is because of two things:
How do Web Components support these patterns ?
This isn’t a referendum against your use of React. Use whatever library suits the project but be aware JavaScript libraries come and go but W3C spec tends to stick around. Div still going strong after all these years!
But to answer your questions, Custom Elements still have lifecycle hooks and well fetch API is available in evergreen browsers.