From bee3055307da13962f62958a5cf9cf621c8488dc Mon Sep 17 00:00:00 2001 From: Sanjay Bhangar Date: Sun, 2 Dec 2018 16:07:00 +0200 Subject: [PATCH] use key instead of ref for unique key for components in loop --- src/containers/Home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/Home.js b/src/containers/Home.js index 1c1fbde..f15c4f5 100644 --- a/src/containers/Home.js +++ b/src/containers/Home.js @@ -23,7 +23,7 @@ class Home extends React.Component {
{ this.props.loading && 'Loading...'} { this.props.videos.map(video => { - return (
{ video.title }
); + return (
{ video.title }
); })}