Simple wrappers for React hooks support, along with additional predefinined functions that do useful things with hooks in the context of Fulcro.
Simple wrappers for React hooks support, along with additional predefinined functions that do useful things with hooks in the context of Fulcro.
(use-callback cb)
(use-callback cb args)
A simple wrapper around React/useCallback. Converts args to js array before send.
React docs: https://reactjs.org/docs/hooks-reference.html#usecallback
A simple wrapper around React/useCallback. Converts args to js array before send. React docs: https://reactjs.org/docs/hooks-reference.html#usecallback
(use-context ctx)
A simple wrapper around React/useContext.
A simple wrapper around React/useContext.
(use-debug-value value)
(use-debug-value value formatter)
A simple wrapper around React/useDebugValue.
React docs: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
A simple wrapper around React/useDebugValue. React docs: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
(use-effect f)
(use-effect f args)
A simple wrapper around React/useEffect.
React docs: https://reactjs.org/docs/hooks-reference.html#useeffect
A simple wrapper around React/useEffect. React docs: https://reactjs.org/docs/hooks-reference.html#useeffect
(use-imperative-handle ref f)
A simple wrapper around React/useImperativeHandle.
React docs: https://reactjs.org/docs/hooks-reference.html#useimperativehandle
A simple wrapper around React/useImperativeHandle. React docs: https://reactjs.org/docs/hooks-reference.html#useimperativehandle
(use-memo cb)
(use-memo cb args)
A simple wrapper around React/useMemo. Converts args to js array before send.
React docs: https://reactjs.org/docs/hooks-reference.html#usememo
A simple wrapper around React/useMemo. Converts args to js array before send. React docs: https://reactjs.org/docs/hooks-reference.html#usememo
(use-reducer reducer initial-arg)
(use-reducer reducer initial-arg init)
A simple wrapper around React/useReducer. Returns a cljs vector for easy destructuring
React docs: https://reactjs.org/docs/hooks-reference.html#usecontext
A simple wrapper around React/useReducer. Returns a cljs vector for easy destructuring React docs: https://reactjs.org/docs/hooks-reference.html#usecontext
(use-ref)
(use-ref value)
A simple wrapper around React/useRef.
React docs: https://reactjs.org/docs/hooks-reference.html#useref
A simple wrapper around React/useRef. React docs: https://reactjs.org/docs/hooks-reference.html#useref
(use-state initial-value)
A simple wrapper around React/useState. Returns a cljs vector for easy destructuring.
React docs: https://reactjs.org/docs/hooks-reference.html#usestate
A simple wrapper around React/useState. Returns a cljs vector for easy destructuring. React docs: https://reactjs.org/docs/hooks-reference.html#usestate
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close