From e875fa09672fdff4440903e25c3c4e5ec1f76c75 Mon Sep 17 00:00:00 2001 From: comerc Date: Sun, 11 Dec 2016 16:43:40 +0300 Subject: [PATCH] Fix casing typo in jsx-in-depth.md (#8542) --- docs/jsx-in-depth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/jsx-in-depth.md b/docs/jsx-in-depth.md index 5c96b096..e08004d1 100644 --- a/docs/jsx-in-depth.md +++ b/docs/jsx-in-depth.md @@ -180,7 +180,7 @@ You can pass any JavaScript expression as a prop, by surrounding it with `{}`. F ``` -For `MyComponent`, The value of `props.foo` will be `10` because the expression `1 + 2 + 3 + 4` gets evaluated. +For `MyComponent`, the value of `props.foo` will be `10` because the expression `1 + 2 + 3 + 4` gets evaluated. `if` statements and `for` loops are not expressions in JavaScript, so they can't be used in JSX directly. Instead, you can put these in the surrounding code. For example: