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 meahh
props is just a named argument with BottomSheetBackdropProps passed in
and {...props} is some sort of destructuring
it's just a splat
JSX stuff is not a function - so you use that pattern to drop all those props in as attributes
[bottom-sheet-backdrop (assoc props :press-behavior ...)]
something like this is equivalent at a high level
@dnolen Thanks for clarifying. Might very well have been the case in my situation.
no problem, it's important to remember if you forget you will see all kinds of headscratchers
least of all problems w/ the REPL
hi everyone, good afternoon. Does anyone know how to navigate to a specific route in the app from within a reg-event-fx?