Fork me on GitHub
#reagent
<
2017-03-01
>
leroix04:03:41

Are there any benchmarks out there using reagent with large’ish DOM trees?

hlolli11:03:52

if I want to nest hiccup form in an interop parenthesis, what's the function to parse the square brackets to react components?

(js/React.createElement
          js/ReactSticky.Sticky
         #js {:topOffset -60
                :isActive true
                :stickyStyle #js {:marginTop "56px"}}
  [:p "How to tell reagent that Im a react element"])

pesterhazy11:03:56

better to use r/as-element

pesterhazy11:03:24

(r/as-element [:> js/ReactStricky.Stick {:topOffset ...} [:p ...]])

hlolli11:03:13

hmm interesting! looks cleaner (some ideas that om-next could steal) 🙂 try this

pesterhazy11:03:08

reagent has quite a few tricks up its sleeve

hlolli11:03:16

(lunch starting) what does :> mean there, is this a placeholder or a recognized keyword that reagent uses?

pesterhazy11:03:21

it's a short cut for r/adapt-react-component

pesterhazy11:03:41

it's magic syntax so to speak

hlolli12:03:58

works in my case like magic

pishty21:03:27

hello guys, just wondering how i can call injectTapEventPlugin from a reagent app that uses material ui to avoid getting the "Unknown prop onTouchTap" warning