From 729ec1bb74d172681cd2c9370adb9c1c79a0130a Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 15 Apr 2015 15:32:37 +0100 Subject: [PATCH] "Advanced performance" typo fix Example code used the key "propsTypes" - correct to "propTypes" --- docs/docs/11-advanced-performance.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/11-advanced-performance.md b/docs/docs/11-advanced-performance.md index b7d56d96c48dc..b4595e8894d92 100644 --- a/docs/docs/11-advanced-performance.md +++ b/docs/docs/11-advanced-performance.md @@ -49,7 +49,7 @@ So, how should we implement `shouldComponentUpdate`? Say that you have a compone ```javascript React.createClass({ - propsTypes: { + propTypes: { value: React.PropTypes.string.isRequired }, @@ -73,7 +73,7 @@ But what if your components' props or state are mutable data structures?. Say th ```javascript React.createClass({ - propsTypes: { + propTypes: { value: React.PropTypes.object.isRequired },