From 5b4083adfd205e0db30d81d4bf9b256b808b2946 Mon Sep 17 00:00:00 2001 From: Todd Kennedy Date: Wed, 29 Mar 2017 02:04:24 -0700 Subject: [PATCH] DOC: Note app.mount replaces target with tree (#449) Make sure users are aware of potential issue with removal of node. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c8f16f8..9f25747 100644 --- a/README.md +++ b/README.md @@ -283,7 +283,9 @@ custom event listener or the matched views. ### `app.mount(selector)` Start the application and mount it on the given `querySelector`. Uses -[nanomount][nanomount] under the hood. +[nanomount][nanomount] under the hood. This will _replace_ the selector provided +with the tree returned from `app.start()`. If you want to add the app as a child +to an element, use `app.start()` to obtain the tree and manually append it. ### `tree = app.start()` Start the application. Returns a tree of DOM nodes that can be mounted using