Cory House
Aug 27, 2017 · 1 min read

Great question. I extracted the arrow out in the example for clarity. But using an arrow in the manner you’ve shown is fine. It doesn’t impact shouldComponentUpdate/PureComponent optimizations — each element in the array would still consistently receive the same props on each render. You can refactor my final example to see that there’s no impact using the arrow for mapping.

)

    Cory House

    Written by

    Pluralsight Author, Principal at reactjsconsulting.com, Software Architect, Microsoft MVP, Speaker, Clean Coder, Aspiring Outlier.