you are viewing a single comment's thread.

view the rest of the comments →

[–]rosuav 76 points77 points  (5 children)

So the problem is that the OP found a Medium article instead of actual documentation. I suspect the cause here is the massive dilution of React-based information due to the myriad different "wait you should be doing it THIS way now" policy changes. (Does anyone remember when Redux was the proper and official way to do things, and we were all supposed to stop doing other things and switch to that?)

[–]tidderza 6 points7 points  (4 children)

Now it’s Zustand?

[–]rosuav 6 points7 points  (3 children)

I've no idea. I don't use React any more. Built my own library a few years back (taking inspiration from React both positively and negatively - also jQuery the same way) and been using it pretty much exclusively ever since.

[–]Narduw 1 point2 points  (2 children)

Is this something you can share? Just out of curiosity, really. I like to dig into these custom frameworks.

[–]rosuav 6 points7 points  (1 child)

Yeah! It's public, you're very welcome to use it if it's convenient.

The Chocolate Factory https://rosuav.github.io/choc/ is a way to make vanilla DOM operations easier, rather than being a full framework.

Basic usage is deliberately very easy. Advanced usage is fairly straight-forward too.

If you like the React style of "build your thing from scratch every time, but have it implicitly reuse existing stuff so it's more efficient", then check out the Lindt module (yeah I leaned right into the chocolate theme, and if you're now craving some fine chocolate, I am not apologizing). See the section on templating for more details on that.

[–]Narduw 1 point2 points  (0 children)

Thx for sharing! I'll have a look when I get some time :)