diffhtml-middleware-logger
Version:
Logs out render transactions to the console
28 lines (18 loc) • 703 B
Markdown
Stable Version: 1.0.0-beta.30
Use with diffHTML to `console.log` out [render
transaction](https://diffhtml.org/#transaction) operations. This will nest
sub-component renders if they happen during a parent render.

``` sh
npm install diffhtml-middleware-logger
```
``` javascript
import { use } from 'diffhtml';
import logger from 'diffhtml-middleware-logger';
use(logger());
```
This is not a very performant middleware, so please do not use this in
production where performance is critical. Use in development.