Recast key docs to be much clearer and more accurate (#2540)

* Recast key docs to be much clearer and more accurate [skip ci]

Also, fix a couple broken hash links I noticed while making this.

* Ensure `diff` blocks are highlighted correctly
This commit is contained in:
Isiah Meadows 2019-10-11 04:29:11 -04:00 committed by GitHub
parent d4551f49f5
commit 512eef378e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 505 additions and 193 deletions

View file

@ -109,7 +109,7 @@ function Layout() {
}
```
This would end up [throwing an error](keys.md#avoid-mixing-keyed-and-non-keyed-vnodes-in-the-same-array) because here's what Mithril sees when creating the `Layout` vnode:
This would end up [throwing an error](keys.md#key-restrictions) because here's what Mithril sees when creating the `Layout` vnode:
```javascript
return [