reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2020-09-15T09:04:30.017900Z

When we're adding event handlers using something like the :on-click member of a map, is there any any way to provide the additional arguments that you sometimes see passed to addEventListener ? I'm specifically trying to deal with a passive vs. non-passive event listener issue I'm seeing in Chrome.

2020-09-15T09:09:39.018200Z

I can do it in component-did-mount but that is a bit ugly ...

Lucy Wang 2020-09-18T05:51:21.005900Z

Or using refs + useEffect hook if you're using reagent 1.0 and functional components

unbalanced 2020-09-15T21:23:35.018800Z

dawww nothing that ugly about a form-3 component!! they need love too!

p-himik 2020-09-15T21:53:21.019100Z

It has nothing to do with Reagent, it's the React limitation. So yeah, AFAIK you will have to use :component-did-mount.