Mark two examples as live for the corresponding documentation change in https://github.com/koajs/koajs.com/pull/38. (#1031)

Reviewed by @tolmasky.
master
Francisco Ryan Tolmasky I 2019-01-05 23:51:55 -08:00 committed by niftylettuce
parent d9ef60398e
commit b25e79dfb5
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@ You can also use the [env preset](http://babeljs.io/docs/plugins/preset-env/) wi
The obligatory hello world application: The obligatory hello world application:
<!-- runkit:endpoint -->
```js ```js
const Koa = require('koa'); const Koa = require('koa');
const app = new Koa(); const app = new Koa();
@ -74,6 +75,7 @@ app.listen(3000);
middleware to execute downstream, the stack will unwind and each middleware is resumed to perform middleware to execute downstream, the stack will unwind and each middleware is resumed to perform
its upstream behaviour. its upstream behaviour.
<!-- runkit:endpoint -->
```js ```js
const Koa = require('koa'); const Koa = require('koa');
const app = new Koa(); const app = new Koa();