Open rosenjcb opened 3 years ago
The resolution around this is to change :on-click
to :onClick
and I have no idea why. I guess it's because I've escaped cljs-styled-components
native :button
and am now communicating directly with styled-components by passing props the verbatim keyword (e.g. :onClick
becomes onClick
in the React JSX). Is there a more technical explanation?
Hi - sorry for the long silence on this. Yes there is no reagent-style prop conversion currently. That can be easily added - here is where props are handled: https://github.com/dvingo/cljs-styled-components/blob/8c254138a28a089b35e75abd90b1619f9138cfd7/src/main/cljs_styled_components/common.cljc#L153 and the reagent helper to convert them: