Fork me on GitHub
#reagent
<
2022-11-11
>
juhoteperi14:11:22

I did start working on React 18 support on Reagent this week and I wrote a blog post about the work: https://www.metosin.fi/blog/reagent-towards-react-18/ https://github.com/reagent-project/reagent/compare/v1.1.1...master

šŸ™Œ 1
šŸ˜ 2
clapping 3
šŸ‘€ 2
Charles Comstock17:11:31

Perhaps this has already been well discussed, but I'm curious if anyone has explored recreating the minimal DOM diffing engine that powers React and then creating a feature compatible version of Reagent using that engine instead of React. I haven't explored the space at all, but I have the impression that there is significant overlap between the features Reagent provides and what React provides itself. I assume this would remove any compatibility with existing React plugins, which may be a major problem for some folks, but I also suspect it would also simplify the resulting code and hopefully produce a smaller bundle? Just curious if anyone else has explored that space or had any other thoughts on it.

lispers-anonymous19:11:34

Reagent works when react is swapped out with the much smaller preact library: https://preactjs.com/

lispers-anonymous19:11:51

I made a reference project a while back that compared the resulting bundle sizes https://git.sr.ht/~dannyfreeman/preact-reagent-demo

lispers-anonymous19:11:22

Itā€™s not exactly removing duplicate features of the two (react/reagent), but does result in smaller bundles.

Charles Comstock19:11:16

Neat, I think this is very close to what I was thinking of. I will have to explore both preact and your project

lispers-anonymous19:11:02

This might be more on the line of what you originally asked too https://bitbucket.org/sonwh98/mr-clean/src/master/ but as far as I know never made it out of the proof of concept stage. Still a neat project to look at

Charles Comstock19:11:59

Thank you, both of those give me something to explore and consider. I kind of assumed there was prior art there, but nice to see several approaches already exist

catjam 1
Lone Ranger22:11:26

I've thought about it but it seems hard

Lone Ranger22:11:45

Seems like a really useful algo to have in your back pocket tho

Lone Ranger22:11:11

@UDVJE9RE3 thanks for the suggestions... and the username lol

lispers-anonymous22:11:08

Please do not steal it šŸ™‚

Lone Ranger22:11:09

Whoa, the project or the username? Dang my friend it sounds like youā€™ve had some bad experiences

lispers-anonymous22:11:31

Just the username, do what you want with the project lol

Lone Ranger22:11:53

I just meant ā€œit gave me enjoyment seeing your usernameā€, Iā€™m sorry if I implied IP theft of your username :rolling_on_the_floor_laughing:

lispers-anonymous22:11:07

No worries lmao. Iā€™m going to have to get it trademarked!