add some points to address common criticism

This commit is contained in:
Leo Horie 2015-04-22 22:46:01 -04:00
parent fceb02e887
commit 24a8b0b31c

View file

@ -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