Liking cljdoc? Tell your friends :D

rumext.v2


catchcljs

(catch component {:keys [fallback on-error]})
source

check-propscljs

(check-props props)
(check-props props eqfn?)

Utility function to use with memo'. Will check the props keys to see if they are equal.

Usage:

(mf/defc my-component {::mf/wrap [#(mf/memo' % (checkprops ["prop1" "prop2"]))]} [props] )

Utility function to use with `memo'`.
Will check the `props` keys to see if they are equal.

Usage:

(mf/defc my-component
  {::mf/wrap [#(mf/memo' % (checkprops ["prop1" "prop2"]))]}
  [props]
)
sourceraw docstring

Componentcljs

source

create-contextcljs

(create-context)
(create-context value)
source

create-refcljs

(create-ref)
source

create-rootcljs

(create-root node)
source

defcclj/smacro

(defc & args)
source

deferredcljs

(deferred component)
(deferred component sfn)
source

depscljs

(deps)
(deps a)
(deps a b)
(deps a b c)
(deps a b c d)
(deps a b c d e)
(deps a b c d e f)
(deps a b c d e f g)
(deps a b c d e f g h)
(deps a b c d e f g h & rest)
source

derefcljs

(deref iref)
source

elementcljs

(element klass)
(element klass props)
source

fncclj/smacro

(fnc & args)
source

forward-refcljs

(forward-ref component)
source

Fragmentcljs

source

htmlclj/smacro

(html body)
source

hydrate-rootcljs

(hydrate-root node element)
source

IDepsAdaptercljsprotocol

adaptcljs

(adapt o)

adapt dep if proceed

adapt dep if proceed
source

jsxcljs

(jsx type props maybe-key)
(jsx type props maybe-key children)
source

jsxscljs

(jsxs type props maybe-key)
(jsxs type props maybe-key children)
source

memocljs

(memo component)
(memo component eq?)
source

memo'cljs

(memo' component equals?)

A raw variant of React.memo.

A raw variant of React.memo.
sourceraw docstring

noopcljs

source

parse-defcclj

(parse-defc args)
source

portalcljs

(portal element node)

Render element in a DOM node that is ouside of current DOM hierarchy.

Render `element` in a DOM `node` that is ouside of current DOM hierarchy.
sourceraw docstring

Profilercljs

source

providercljs

(provider ctx)
source

ref-valcljs

(ref-val ref)

Given state and ref handle, returns React component.

Given state and ref handle, returns React component.
sourceraw docstring

render!cljs

(render! root element)
source

set-ref-val!cljs

(set-ref-val! ref val)
source

start-transitioncljs

(start-transition f)
source

throttlecljs

(throttle component ms)
source

undefinedcljs

source

unmount!cljs

(unmount! root)

Removes component from the DOM tree.

Removes component from the DOM tree.
sourceraw docstring

use-callbackcljs

(use-callback f)
(use-callback deps f)
source

use-ctxcljs

(use-ctx ctx)
source

use-effectcljs

(use-effect f)
(use-effect deps f)
source

use-fncljs

(use-fn f)
(use-fn deps f)

A convenient alias to useCallback

A convenient alias to useCallback
sourceraw docstring

use-idcljs

(use-id)
source

use-layout-effectcljs

(use-layout-effect f)
(use-layout-effect deps f)
source

use-memocljs

(use-memo f)
(use-memo deps f)
source

use-refcljs

(use-ref)
(use-ref initial)
source

use-statecljs

(use-state)
(use-state initial)
source

use-transitioncljs

(use-transition)
source

use-varcljs

(use-var)
(use-var initial)

A custom hook for define mutable variables that persists on renders (based on useRef hook).

A custom hook for define mutable variables that persists
on renders (based on useRef hook).
sourceraw docstring

useCallbackcljs

(useCallback f deps)
source

useContextcljs

(useContext ctx)
source

useEffectcljs

(useEffect f deps)
source

useLayoutEffectcljs

(useLayoutEffect f deps)
source

useMemocljs

(useMemo f deps)
source

useRefcljs

(useRef initial)
source

useStatecljs

(useState initial)
source

useTransitioncljs

(useTransition)
source

with-effectclj/smacro

(with-effect deps & body)
source

with-layout-effectclj/smacro

(with-layout-effect deps & body)
source

with-memoclj/smacro

(with-memo deps & body)
source

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

× close