Portal viewer for rendering Reagent snippets.
Install the viewer like this:
(emmy.portal/install! "emmy/portal/reagent.cljs")
The viewer is automatically installed by the functions in emmy.portal
.
Portal viewer for rendering Reagent snippets. Install the viewer like this: ```clojure (emmy.portal/install! "emmy/portal/reagent.cljs") ``` The viewer is automatically installed by the functions in [[emmy.portal]].
(->f body)
Given a quoted Reagent body (which might use functions like
reagent.core/with-let
or third-party components, not just Hiccup syntax),
returns a no-argument-function component that renders an eval
-ed version of
body
.
Given a quoted Reagent body (which might use functions like `reagent.core/with-let` or third-party components, not just Hiccup syntax), returns a no-argument-function component that renders an `eval`-ed version of `body`.
(expand v)
Renders the supplied Reagent fragment by expanding it
with emmy.viewer/expand
and then evaluating it via ->f
.
Renders the supplied Reagent fragment by expanding it with [[emmy.viewer/expand]] and then evaluating it via [[->f]].
(show-reagent v)
Renders v
, an unevaluated Reagent fragment, by either using ->f
directly
or first expanding it via expand
.
The latter case comes up with a fragment that needs some wrapping context,
like mafs.plot/OfX
. This component can't render alone but needs a wrapping
mafs.core/Mafs
, provided by expand
.
Renders `v`, an unevaluated Reagent fragment, by either using [[->f]] directly or first expanding it via [[expand]]. The latter case comes up with a fragment that needs some wrapping context, like `mafs.plot/OfX`. This component can't render alone but needs a wrapping `mafs.core/Mafs`, provided by `expand`.
Currently transforms are stored under this key for compatibility with the Emmy-Viewers Clerk code.
Currently transforms are stored under this key for compatibility with the Emmy-Viewers Clerk code.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close