You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A [Hyperapp](https://github.com/hyperapp/hyperapp)higher-order `app` that logs state updates and action information to the console.
7
+
A [Hyperapp](https://github.com/hyperapp/hyperapp)[dispatch initializer](https://github.com/jorgebucaran/hyperapp/blob/main/docs/architecture/dispatch.md#dispatch-initializer) that logs state updates and action information to the console.
9
8
10
9
## Getting Started
11
10
12
11
This example shows a counter that can be incremented or decremented. Go ahead and [try it online](https://codepen.io/okwolf/pen/xLQmvW?editors=0010) with your browser console open to see the log messages.
npm i <ahref="https://www.npmjs.com/package/@hyperapp/logger">@hyperapp/logger</a>
43
+
npm i <ahref="https://www.npmjs.com/package/hyperapp-logger">hyperapp-logger</a>
50
44
</pre>
51
45
52
46
Then with a module bundler like [rollup](https://github.com/rollup/rollup) or [webpack](https://github.com/webpack/webpack) use as you would anything else.
53
47
54
48
```js
55
-
import{ withLogger } from"@hyperapp/logger"
49
+
importloggerfrom"hyperapp-logger";
56
50
```
57
51
58
52
### Browser
59
53
60
-
Download the minified library from the [CDN](https://unpkg.com/@hyperapp/logger).
54
+
Download the minified library from the [CDN](https://unpkg.com/hyperapp-logger).
0 commit comments