re: JavaScript predictions for 2019 by npm VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

My use of React is because of two things:

  • React Hooks for logic.
  • React Suspense for data fetching.

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.

code of conduct - report abuse