From 272f15d2c20fe98250b6902c06cf578d958d5143 Mon Sep 17 00:00:00 2001 From: mki-skt Date: Sun, 15 Apr 2018 00:58:38 +0900 Subject: [PATCH] fix : Change map key to uuid --- src/components/Testimonials.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Testimonials.js b/src/components/Testimonials.js index 425fc03..99cc3b9 100644 --- a/src/components/Testimonials.js +++ b/src/components/Testimonials.js @@ -1,10 +1,11 @@ import React from 'react' import PropTypes from 'prop-types' +import { v4 } from 'uuid' const Testimonials = ({ testimonials }) => (
- {testimonials.map((testimonial,index) => ( -
+ {testimonials.map(testimonial => ( +
{testimonial.quote}