diff --git a/src/guide/comparison.md b/src/guide/comparison.md index 137b6539d4..89371d3879 100644 --- a/src/guide/comparison.md +++ b/src/guide/comparison.md @@ -107,24 +107,16 @@ In React, all components express their UI within render functions using JSX, a d ``` jsx render () { - let { items } = this.props - - let children - if (items.length > 0) { - children = ( -
No items found.
- } + const { items } = this.props return (No items found.
+ }