Merge branch 'master' into fix-view-test

This commit is contained in:
Yoshua Wuyts
2016-07-12 00:57:42 +02:00
committed by GitHub
+16 -7
View File
@@ -43,11 +43,6 @@
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"
alt="Standard" />
</a>
<!-- IRC -->
<a href="https://webchat.freenode.net/?channels=choo">
<img src="https://img.shields.io/badge/irc-freenode-blue.svg?style=flat-square"
alt="IRC - Freenode" />
</a>
</div>
<div align="center">
@@ -55,12 +50,16 @@
<a href="https://github.com/yoshuawuyts/choo-handbook">
Handbook
</a>
<span>|</span>
<span> | </span>
Packages
<span>|</span>
<span> | </span>
<a href="https://github.com/yoshuawuyts/choo/blob/master/.github/CONTRIBUTING.md">
Contributing
</a>
<span> | </span>
<a href="https://webchat.freenode.net/?channels=choo">
Chat
</a>
</h3>
</div>
@@ -80,6 +79,7 @@
<li><a href="#example">Example</a></li>
<li><a href="#philosophy">Philosophy</a></li>
<li><a href="#concepts">Concepts</a></li>
<li><a href="#badges">Badges</a></li>
<li><a href="#api">API</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="#installation">Installation</a></li>
@@ -361,6 +361,15 @@ const view = (state, prev, send) => {
```
In this example, when the `Add` button is clicked, the view will dispatch an `add` action that the models `add` reducer will receive. [As seen above](#models), the reducer will add an item to the states `todos` array. The state change will cause this view to be run again with the new state, and the resulting DOM tree will be used to [efficiently patch the DOM](#does-choo-use-a-virtual-dom).
## Badges
Using `choo` in a project? Show off which version you've used using a badge:
[![built with choo v3](https://img.shields.io/badge/built%20with%20choo-v3-ffc3e4.svg?style=flat-square)](https://github.com/yoshuawuyts/choo)
```md
[![built with choo v3](https://img.shields.io/badge/built%20with%20choo-v3-ffc3e4.svg?style=flat-square)](https://github.com/yoshuawuyts/choo)
```
## API
This section provides documentation on how each function in `choo` works. It's
intended to be a technical reference. If you're interested in learning choo for