You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't get either sablono or hicada to work with React Native elements, and I always had good success with hx, so I've been using this defnc macro:
I think it will be difficult to use sablono and hicada in a custom defnc macro since they try and parse at compile time, which means it needs to inspect all of the lets that are often used in helix component bodies. Using their html macros explicitly in each component is probably the best option for now.
Libraries that do fast runtime interpretation (hx, reagent) can easily be wrapped in a custom macro like you have here!
I couldn't get either sablono or hicada to work with React Native elements, and I always had good success with
hx
, so I've been using this defnc macro:Just wanted a sanity check that
hx.react/f
is the right way to wrap hiccup bodies.I could also create a PR adding a note to docs/react-native that this seems to be the best way to get hiccup working for helix + react-native.
The text was updated successfully, but these errors were encountered: