fix : Change map key to uuid

This commit is contained in:
mki-skt 2018-04-15 00:58:38 +09:00
parent 2ef03261e3
commit 272f15d2c2

View file

@ -1,10 +1,11 @@
import React from 'react'
import PropTypes from 'prop-types'
import { v4 } from 'uuid'
const Testimonials = ({ testimonials }) => (
<div>
{testimonials.map((testimonial,index) => (
<article key={index} className="message">
{testimonials.map(testimonial => (
<article key={v4()} className="message">
<div className="message-body">
{testimonial.quote}
<br />