From 7639acedcc636c2106a16b2965663eea80ec2314 Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 7 Feb 2017 13:59:18 +0100 Subject: [PATCH] docs: document choo/mount (#391) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 554cf01..5a52196 100644 --- a/README.md +++ b/README.md @@ -575,6 +575,12 @@ creating self-contained widgets that take care of their own state and lifecycle (e.g. a maps widget) or to trigger animations. Most elements shouldn't have a need for these hooks though. +### mount('selector', html) +Use `choo/mount` to mount a tree of DOMNodes at a given selector. This is +especially useful to mount a `` tag on the document body after rendering +from the server. It makes sure all `