We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4aaff8f + 66875fe commit d7529a8Copy full SHA for d7529a8
src/reagent/core.clj
@@ -1,9 +1,10 @@
1
(ns reagent.core
2
(:require [reagent.ratom :as ra]))
3
4
-(defmacro with-let [bindings & body]
+(defmacro with-let
5
"Bind variables as with let, except that when used in a component
6
the bindings are only evaluated once. Also takes an optional finally
7
clause at the end, that is executed when the component is
8
destroyed."
9
+ [bindings & body]
10
`(ra/with-let ~bindings ~@body))
0 commit comments