I haven't seen too much topic of Web Components here as the favored JS Libs/Frameworks. I like the idea of web components as a light implementation of components where functionality is encapsulated away from the rest of the code. With that being said, any front end apps can utilize web component on their current apps whether it is written in jquery, react, vue, angular, etc.
Do you have any experience writing web components?
I imagine devs will heavy favor functional components with hooks now.
Classes are just a good option to have for those who are a fan AND could update to the functional coolness right away. I like how ReactJS doesn't force devs to re-write everything just what happened to Angular.
React and Web Components are not directly comparable IMO. What could be compared are 1. reusable components done with React or Web Components. Or 2. apps create with Stencil (based on Web Components) or React.
I have seen Stencil used in my current company. We are currently trying to adapt to it as it is lighter. We don't want to ship our components to include VueJS and its libs to our customers.
Stencil combines the best concepts of the most popular frameworks like Virtual DOM, async rendering, reactive data-binding, typeScript, JSX, and more. Do you have experience working with Stencil?
Good article,
What do you think is the biggest selling point of ReactJs VS standard web components?
I haven't seen too much topic of Web Components here as the favored JS Libs/Frameworks. I like the idea of web components as a light implementation of components where functionality is encapsulated away from the rest of the code. With that being said, any front end apps can utilize web component on their current apps whether it is written in jquery, react, vue, angular, etc.
Do you have any experience writing web components?
No need to use classes.
I imagine devs will heavy favor functional components with hooks now.
Classes are just a good option to have for those who are a fan AND could update to the functional coolness right away. I like how ReactJS doesn't force devs to re-write everything just what happened to Angular.
React and Web Components are not directly comparable IMO. What could be compared are 1. reusable components done with React or Web Components. Or 2. apps create with Stencil (based on Web Components) or React.
Learned something new, thnx! 😊
that is the beauty of this platform. I learn every time I come here and blog with you smart people. 😃
I have seen Stencil used in my current company. We are currently trying to adapt to it as it is lighter. We don't want to ship our components to include VueJS and its libs to our customers.
Stencil combines the best concepts of the most popular frameworks like Virtual DOM, async rendering, reactive data-binding, typeScript, JSX, and more. Do you have experience working with Stencil?
Yes, I am also working on a project where we are using stencil. I am very happy with that decision so far.
Stencil / web components do not work with a virtual DOM as React does, though. Maybe shadow DOM is what you meant 😉
I read on the site that it does, below are some things I read - stenciljs.com/docs/introduction
Stencil combines the best concepts of the most popular frameworks into a simple build-time tool.
Stencil takes features such as
Virtual DOM
Async rendering (inspired by React Fiber)
Reactive data-binding
TypeScript
JSX
Static Site Generation (SSG)
I see, thanks for pointing that out.
welcome 👍