Yesterday, I posted an article called Why would you want to learn VueJS now? and I appreciate all who share their thoughts and experiences with the...
For further actions, you may consider blocking this person and/or reporting abuse
Good article,
What do you think is the biggest selling point of ReactJs VS standard web components?
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?
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 👍
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 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.
The fact no React developer mentions is that the W3C and WHATWG in 2019 agreed there would be 1 HTML standard, and the WHATWG will be in the lead, the W3C will only give final approval.
That means the WHATWG is in control in what (future) browsers run.
The WHATWG is by invitation only... and guess what .. Facebook is not a core member.
The WHATWG (defacto Mozilla, Apple, Google and Microsoft) are the companies that together create the Web Components standard (it used to be a Google party.. since 2018 they are working together.. and getting better at it every meeting)
Technology wise React only for 71% complies with the Web Components standard; all other Frameworks.. Angular, Vue, Svelte not only support but can create Web Components.
I would say those 4 WHATWG Core members hold all 4 aces for HTML future.
Haven't seen Facebook make any move yet... the October 2020 update doesn't mention any of the Native Web Component terms.
Flash died last december ... is React the new Flash?
The normal cycle of technology proves that it only has one outcome, it only gets better and it evolves. Do you remember jquery, backbone, etc? How about the old way of creating layout on css - inline style, table, and float? Notepad, Notepad++, Textmate and others.
I don't see ReactJS dying anytime soon but eventually, it might when something greater and better comes in. Not sure when this will happen but for now, it is very fast, useful, and practical to use so we should embrace it until we have no reason to use it or something comes in that is better and more efficient than ReactJS.
Apple hates the web and the browsers nothing good to expect from them, it is the biggest competitor to the AppStore and they would love if the web dies.
The only question I personally have is, how real (from the practice, not just from articles) is logic reuse and just, changing the UI components, not even the css - between react and react native. Otherwise, I'll stick with Flutter.
Hi Toma, im not clear about the question. Are you asking/verifying if logic reuse on components are real?
Yes, Is it possible everything but the views reused?
Components have their own logic that can be reused as needed.
Passing in props makes components dynamic meaning it can use different logic based on the data being passed into these components.
Use Hooks no need to use Class Component
agreed, I am all in with this. Is there even a downside on hooks, haven't seen any.
No no downsides
I would say that React encourages to avoid some "weirds" parts of Javascript such as the "this" keyword by using Functional Components
Functional Components really did make class-based components obsolute. Is your company using ReactJS and migrate everything to Functional Components?
No, my company is using Angular, i am studying React by my own, and i think React is another paradigm and way of thinking, quite interesting
definitely a good and important skill to know. So many advantages of knowing especially the job demand and better developer experience
re-uploaded the same video but with better audio and some enhancement on the video