ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 4ca6b43982326b39f9406aa09558560c4669fce8
parent 5e3b4c61d0e22d357cebe052db36eb1ff1eb010c
Author: Konstantin Tarkus <koistya@gmail.com>
Date:   Thu,  3 Mar 2016 07:21:42 +0300

Merge pull request #480 from NestorTejero/patch-1

Fix items.map call - missing parantheses
Diffstat:
Mdocs/react-style-guide.md | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/react-style-guide.md b/docs/react-style-guide.md @@ -52,14 +52,14 @@ For more information google for [component-based UI development](https://google. class Navigation extends Component { static propTypes = { items: PropTypes.array.isRequired }; render() { - return <nav><ul>{this.props.items.map(x => <li>{x.text}</li>}</ul></nav>; + return <nav><ul>{this.props.items.map(x => <li>{x.text}</li>)}</ul></nav>; } } // Better function Navigation({ items }) { return ( - <nav><ul>{items.map(x => <li>{x.text}</li>}</ul></nav>; + <nav><ul>{items.map(x => <li>{x.text}</li>)}</ul></nav>; ); } Navigation.propTypes = { items: PropTypes.array.isRequired };