From 24a8b0b31c0d1a2787b9efa723229d1d1a5371c3 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 22 Apr 2015 22:46:01 -0400 Subject: [PATCH] add some points to address common criticism --- docs/getting-started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index c958dba4..dd453245 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -214,6 +214,8 @@ todo.view = function() { The utility method `m()` creates virtual DOM elements. As you can see, you can use CSS selectors to specify attributes. You can also use the `.` syntax to add CSS classes and the `#` to add an id. +In fact, when not using the [MSX](https://github.com/insin/msx) HTML syntax preprocessor, it's recommended that you embrace using CSS selectors (e.g. `m(".modal-body")`) to really benefit from their inherent semantic expressiveness. + For the purposes of testing out our code so far, the view can be rendered using the `m.render` method: ```javascript