18
React-Like Functional Web Components (positive-intentions.com)
you are viewing a single comment's thread
view the rest of the comments
[-] xoron@programming.dev 7 points 1 month ago

no. it isnt better or more stable than React. its all an experimental proof-of-concept.

its an idea im trying out. i thought maybe others might find it interesting.

im aiming to see if i can get something that looks and behaves like React, but works natively in a browser without the need to build or transpile. i think in theory it could work.

[-] MagicShel@programming.dev 3 points 1 month ago

Go for it. React wasn't anything anyone gave a shit about until it was. It'll eventually die, too, like every other front end framework. Maybe this'll be the concept that replaces it. Who knows?

[-] Waldowal@lemmy.world 3 points 1 month ago

Sounds great to me. All the React tooling is annoying.

[-] Lysergid@lemmy.ml 1 points 1 month ago

After closer look I can say this is great idea. Initially I thought this messes with Lit’s lifecycle bringing React’s lifecycle drawbacks but seems like it’s not. I think at some point you should get in touch with Lit devs and see if it can become part of Lit lab or even Lit itself

[-] xoron@programming.dev 1 points 1 month ago

thanks!

when i started, the attempt was to try to create this functionality without using any dependencies (including Lit). the Lit html function is well done and makes things very convenient for handling things like the lifecycle methods and caching states.

i would like to revisit that attempt, but i found that Lit does it very well and for me to create something from scratch would take much more consideration and i expect i would overlook some nuanced detail. i'll see what i can make of it in future changes.

while im sure Lit users could benefit from this, as for contributing to the Lit ecosystem, im not really sure what steps to take for this. similarly, React 19 also introduces "support" for web components.

this post was submitted on 01 Oct 2024
18 points (90.9% liked)

Programming

17314 readers
132 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS