mirror of https://github.com/status-im/reagent.git
Merge pull request #376 from troglotit/master
Fix non-valid docstring for `with-let`
This commit is contained in:
commit
d7529a8e60
|
@ -1,9 +1,10 @@
|
|||
(ns reagent.core
|
||||
(:require [reagent.ratom :as ra]))
|
||||
|
||||
(defmacro with-let [bindings & body]
|
||||
(defmacro with-let
|
||||
"Bind variables as with let, except that when used in a component
|
||||
the bindings are only evaluated once. Also takes an optional finally
|
||||
clause at the end, that is executed when the component is
|
||||
destroyed."
|
||||
[bindings & body]
|
||||
`(ra/with-let ~bindings ~@body))
|
||||
|
|
Loading…
Reference in New Issue