Liking cljdoc? Tell your friends :D

emmy.portal.reagent

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]].
raw docstring

->fcljs

(->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`.
sourceraw docstring

expandcljs

(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]].
sourceraw docstring

reagent?cljs

(reagent? v)
source

show-reagentcljs

(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`.
sourceraw docstring

viewer-namecljs

source

xform-keycljs

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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close