diff --git a/src/reagent/core.clj b/src/reagent/core.clj index da69332..290b320 100644 --- a/src/reagent/core.clj +++ b/src/reagent/core.clj @@ -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))