diff --git a/.gitignore b/.gitignore index 556f930..17065e8 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ target pom.xml .lein-repl-history pom.xml.asc +.nrepl-port diff --git a/src/cloact/core.cljs b/src/cloact/core.cljs index 08ecbac..5c3da04 100644 --- a/src/cloact/core.cljs +++ b/src/cloact/core.cljs @@ -12,7 +12,9 @@ (def is-client tmpl/isClient) (defn render-component - "Render a Cloact component into the DOM. The first argument may be either a vector (using Cloact's Hiccup syntax), or a React component. The second argument should be a DOM node. + "Render a Cloact component into the DOM. The first argument may be either a +vector (using Cloact's Hiccup syntax), or a React component. The second argument +should be a DOM node. Optionally takes a callback that is called when the component is in place.