Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
FbN committed Feb 17, 2019
1 parent 197aaa0 commit 441c412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ Let's begin by defining a view function that creates a header and a
button.

```js
function* counterListView(): {
function* counterListView() {
yield h1("Counters");
const { click: addCounter } = yield button({ class: "btn btn-primary" }, "Add counter");
return { addCounter };
Expand All @@ -661,7 +661,7 @@ function receives the return value from the view function.
```js
const counterList = modelView(counterListModel, counterListView);

const counterListModel = fgo(function*({addCounter, listOut}): {
const counterListModel = fgo(function*({addCounter, listOut}) {
const nextId = yield sample(scanS(add, 2, addCounter.mapTo(1)));
const appendCounterFn = map(
(id) => (ids: number[]) => ids.concat([id]),
Expand Down Expand Up @@ -1038,4 +1038,4 @@ Continuously run the tests with

```sh
npm run test-watch
```
```

0 comments on commit 441c412

Please sign in to comment.