Fork me on GitHub
#re-frame
<
2022-08-23
>
tianshu18:08:43

Hey, is there a way to use useEffect with re-frame? Some libraries provide such kind of APIs.

p-himik18:08:44

Nothing built-in. Re-frame is pretty much agnostic about React.

lilactown18:08:20

how would you want to use useEffect with re-frame?

tianshu21:08:08

Well, library provides API in a useEffect way.

tianshu21:08:28

Personally, I never use useEffect in ClojureScript.

lilactown22:08:41

you can call useEffect in reagent components if you render them using :f>

lilactown22:08:53

which would allow you to use re-frame and hooks in the same component

tianshu12:08:43

Thank you!