Fork me on GitHub
Garrett Hopper19:09:53

Any idea why {:style {:--test 1}} evaluates to style="--test:1;" in Clojure (server side rendering), but style="-test:1;" in Clojurescript (notice the single hyphen)? Any ideas for a workaround for inline css variables?

Garrett Hopper19:09:26

I could build a style string using garden, though react won't accept a style string of course.

Garrett Hopper20:09:46

Oh... Sablono is camel casing

Garrett Hopper23:09:30

React apparently doesn't support this in the first place. I got partway with #js / cljs->js maps instead, but then React complains.