Fork me on GitHub
#re-frame
<
2021-05-13
>
Braden Shepherdson18:05:23

apologies for the cheeky-seeming question, but I'm curious: how married to React is re-frame? would another view = f(state) library (say, https://lit-html.polymer-project.org/guide) be pluggable with some work?

p-himik18:05:58

It's a long marriage with significant commitment. Likely, a "happily ever after" kind of story. :) https://github.com/day8/re-frame/issues/590

p-himik18:05:27

> pluggable with some work re-frame code base is small, very small. The vast majority of it are docstrings, simple helper functions coming a close second. With some work, it's possible to just completely rewrite it, assuming the underlying library supports some sort of reactions, because that's how the whole concept of subscriptions works.

lilactown19:05:09

yeah, like p-himik is saying: the events and effects stuff works w/o reagent/react, but the app-db and subscription mechanism would need to be replaced

lilactown19:05:42

I have an abandoned hobby project wherein I made a fork of re-frame that ripped out all the dependencies on reagent: https://github.com/lilactown/punk/tree/master/frame