ff-stream-web

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

commit ec53e30152335699ca690d388647f63bc60d0ef6
parent 462a44e3085e846fa9d2ade79ae3b1b4e9410c1e
Author: NestorTejero <webeafix@gmail.com>
Date:   Wed,  2 Mar 2016 15:14:50 +0100

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 };