Merge branch 'master' into fix-view-test
This commit is contained in:
@@ -43,11 +43,6 @@
|
|||||||
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"
|
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square"
|
||||||
alt="Standard" />
|
alt="Standard" />
|
||||||
</a>
|
</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>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
@@ -61,6 +56,10 @@
|
|||||||
<a href="https://github.com/yoshuawuyts/choo/blob/master/.github/CONTRIBUTING.md">
|
<a href="https://github.com/yoshuawuyts/choo/blob/master/.github/CONTRIBUTING.md">
|
||||||
Contributing
|
Contributing
|
||||||
</a>
|
</a>
|
||||||
|
<span> | </span>
|
||||||
|
<a href="https://webchat.freenode.net/?channels=choo">
|
||||||
|
Chat
|
||||||
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -80,6 +79,7 @@
|
|||||||
<li><a href="#example">Example</a></li>
|
<li><a href="#example">Example</a></li>
|
||||||
<li><a href="#philosophy">Philosophy</a></li>
|
<li><a href="#philosophy">Philosophy</a></li>
|
||||||
<li><a href="#concepts">Concepts</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="#api">API</a></li>
|
||||||
<li><a href="#faq">FAQ</a></li>
|
<li><a href="#faq">FAQ</a></li>
|
||||||
<li><a href="#installation">Installation</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 model’s `add` reducer will receive. [As seen above](#models), the reducer will add an item to the state’s `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).
|
In this example, when the `Add` button is clicked, the view will dispatch an `add` action that the model’s `add` reducer will receive. [As seen above](#models), the reducer will add an item to the state’s `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:
|
||||||
|
|
||||||
|
|
||||||
|
[](https://github.com/yoshuawuyts/choo)
|
||||||
|
```md
|
||||||
|
[](https://github.com/yoshuawuyts/choo)
|
||||||
|
```
|
||||||
|
|
||||||
## API
|
## API
|
||||||
This section provides documentation on how each function in `choo` works. It's
|
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
|
intended to be a technical reference. If you're interested in learning choo for
|
||||||
|
|||||||
Reference in New Issue
Block a user