From 964317b63ad13ba61047d712133f8bc75668d880 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 6 Apr 2016 15:56:03 +1200 Subject: [PATCH] Fix typo - 'much' to 'must' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e79245b..7a934a1 100644 --- a/README.md +++ b/README.md @@ -550,7 +550,7 @@ The `.elm` property of a virtual node is a pointer to the real DOM node created #### key : string | number -The `.key` property is created when a key is provided inside of your [`.data`](#data--object) object. The `.key` property is used to keep pointers to DOM nodes that existed previously to avoid recreating them if it is unnecessary. This is very useful for things like list reordering. A key much be either a string or a number to allow for proper lookup as it is stored internally as a key value pair inside of an object, where `.key` is the key and the value is the [`.elm`](#elm--element) property created. +The `.key` property is created when a key is provided inside of your [`.data`](#data--object) object. The `.key` property is used to keep pointers to DOM nodes that existed previously to avoid recreating them if it is unnecessary. This is very useful for things like list reordering. A key must be either a string or a number to allow for proper lookup as it is stored internally as a key value pair inside of an object, where `.key` is the key and the value is the [`.elm`](#elm--element) property created. For example: `h('div', {key: 1}, [])` will create a virtual node object with a `.key` property with the value of `1`.