cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
2021-05-27T19:18:35.079200Z

What would be the clojurescript/reagent equivalent to

const renderBackdrop = useCallback(
    (props: BottomSheetBackdropProps) => (
      <BottomSheetBackdrop {...props} pressBehavior={backdropPressBehavior} />
    ),
    [backdropPressBehavior]
  );
the props: and {…props} syntax is new to me

2021-05-27T19:19:52.079600Z

ahh

2021-05-27T19:20:15.080Z

props is just a named argument with BottomSheetBackdropProps passed in

2021-05-27T19:20:27.080300Z

and {...props} is some sort of destructuring

dnolen 2021-05-27T19:20:56.080500Z

it's just a splat

dnolen 2021-05-27T19:21:21.081Z

JSX stuff is not a function - so you use that pattern to drop all those props in as attributes

dnolen 2021-05-27T19:23:50.082400Z

[bottom-sheet-backdrop (assoc props :press-behavior ...)] something like this is equivalent at a high level

1
Michael Jung 2021-05-27T19:48:22.083800Z

@dnolen Thanks for clarifying. Might very well have been the case in my situation.

dnolen 2021-05-27T19:49:00.084500Z

no problem, it's important to remember if you forget you will see all kinds of headscratchers

dnolen 2021-05-27T19:49:07.084700Z

least of all problems w/ the REPL

Mark 2021-05-27T22:38:17.086400Z

hi everyone, good afternoon. Does anyone know how to navigate to a specific route in the app from within a reg-event-fx?