Permalink
Browse files

Remove `key` prop from examples/ (#797)

1 parent 1721fec commit fd8cf75a23c40aa5f0720ffed9accfc8258b5a50 @ericf ericf committed on GitHub Dec 29, 2016
@@ -17,16 +17,15 @@ const Greeting = ({name, unreadCount, lastLoginTime}) => (
} since {formattedLastLoginTime}.
`}
values={{
- name: <b key='name'>{name}</b>,
+ name: <b>{name}</b>,
unreadCount: unreadCount,
formattedUnreadCount: (
- <b key='formattedUnreadCount'>
+ <b>
<FormattedNumber value={unreadCount} />
</b>
),
formattedLastLoginTime: (
<FormattedRelative
- key='formattedLastLoginTime'
value={lastLoginTime}
updateInterval={1000}
/>
@@ -17,18 +17,15 @@ class Greeting extends Component {
} since {formattedLastLoginTime}.
`}
values={{
- name: <b key='name'>{user.name}</b>,
+ name: <b>{user.name}</b>,
unreadCount: user.unreadCount,
formattedUnreadCount: (
- <b key='formattedUnreadCount'>
+ <b>
<FormattedNumber value={user.unreadCount} />
</b>
),
formattedLastLoginTime: (
- <FormattedRelative
- key='formattedLastLoginTime'
- value={user.lastLoginTime}
- />
+ <FormattedRelative value={user.lastLoginTime} />
),
}}
/>

0 comments on commit fd8cf75

Please sign in to comment.