From 8eef8e848d3002d23d7dd486773ef6b4cc84f47d Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Fri, 22 Jul 2016 08:25:03 -0700 Subject: [PATCH] Provie a key element to the chars in strings --- js/CharacterString.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/CharacterString.jsx b/js/CharacterString.jsx index faa57133..3d5dc6ed 100644 --- a/js/CharacterString.jsx +++ b/js/CharacterString.jsx @@ -5,8 +5,8 @@ module.exports = (props) => { const text = '' + props.children; const chars = text.split(''); return
- {chars.map(character => { - return {character}; + {chars.map((character, index) => { + return {character}; })};
; };