An open API service indexing awesome lists of open source software.

https://github.com/colingourlay/chooet

All the goodness of choo, multi-threaded by duet.
https://github.com/colingourlay/chooet

Last synced: about 2 months ago
JSON representation

All the goodness of choo, multi-threaded by duet.

Awesome Lists containing this project

README

        

# chooet

All the goodness of [choo](https://github.com/yoshuawuyts/choo), multi-threaded by [duet](https://github.com/colingourlay/duet).

```js
const chooet = require('chooet');
const html = require('chooet/html');

chooet(choo => {
app = choo();

app.model({
state: { title: 'Not quite set yet' },
reducers: {
update: (data, state) => ({ title: data })
}
});

const mainView = (state, prev, send) => html`

Title: ${state.title}


send('update', value.title)}}>

`;

app.router(route => [
route('/', mainView)
]);

app.start('body');
});
```