Skip to content

Commit

Permalink
Merge pull request #103 from FbN/master
Browse files Browse the repository at this point in the history
fix syntax
  • Loading branch information
limemloh authored Feb 22, 2019
2 parents 0fe955e + 441c412 commit f598870
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 f598870

Please sign in to comment.