Mark two examples as live for the corresponding documentation change in https://github.com/koajs/koajs.com/pull/38. (#1031)
Reviewed by @tolmasky.
This commit is contained in:
parent
d9ef60398e
commit
b25e79dfb5
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ You can also use the [env preset](http://babeljs.io/docs/plugins/preset-env/) wi
|
|||
|
||||
The obligatory hello world application:
|
||||
|
||||
<!-- runkit:endpoint -->
|
||||
```js
|
||||
const Koa = require('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
|
||||
its upstream behaviour.
|
||||
|
||||
<!-- runkit:endpoint -->
|
||||
```js
|
||||
const Koa = require('koa');
|
||||
const app = new Koa();
|
||||
|
|
Loading…
Reference in a new issue