DEV Community

Discussion on: Should I write a new JavaScript framework?

Collapse
 
wadecodez profile image
Wade Zimmerman

Thank you for the inspiration. We need an alternative to React. Something that uses JSX but without hooks. Instead it should use ES6 classes. /s

Collapse
 
ninjin profile image
Jin

JSX is not the best solution, but if you really want it, I recommend trying $mol_jsx, which fixes most JSX problems:

✅ The component automatically tracks external states (not only inner state).
✅ Component parameters are updated without a parent re-render.
✅ Changing the callback does not result in a re-render.
✅ Our hook counterpart can be applied anywhere in the code, even in loops and conditions.
✅ For partial updates, you can create a component that accepts callback.
✅ Stateful components are fully controllable.

Collapse
 
eshimischi profile image
eshimischi

What??

Collapse
 
uzair004 profile image
Muhammad Uzair

Classes don't have good class in JavaScript. 😁

Collapse
 
whitep4nth3r profile image
Salma Alam-Naylor

🤣

Some comments have been hidden by the post's author - find out more