DEV Community

Discussion on: Why LitElement isn't as good as React

Collapse
 
gormonn profile image
Dmitriy Aleksandrovich

I wonder why you are comparing poor LitElement to rich React Hooks?

To be fair, you should have compared LitElement + Haunted hooks

Collapse
 
tsweb profile image
Tias

The reason I investigated these two in particular was because of my job requesting me to evaluate LitElement. And I hope to help others making the same evaluation.

Agreed, react has had more attention to tooling and DX, so it is richer. It has the benefit of more time and attention, many years more.

Collapse
 
gormonn profile image
Dmitriy Aleksandrovich

The problem is that you are comparing a class component with a functional one (with hooks). This is pretty weird. You might as well have compared React Class Components to Functional React Components with Hooks.

Just try LitElement with haunted (hooks implementation) and compare it to Functional React Components with Hooks.