wdudek82 / touchytyper-fronend-react

Application to practice touch typing (Frontend in React)
0 stars 0 forks source link

Add keys to rendered char and token elements #3

Closed wdudek82 closed 5 years ago

wdudek82 commented 5 years ago

Those created with .map functions - react needs keys there. UUID generated using Lodash should be perfect.

wdudek82 commented 5 years ago

Yup, lodash-uuid seems to work just fine. Weird thing though is that right now, because I need to update elements created with map, I need to add key to every character span and token span.