Cory House
Aug 22, 2017 · 1 min read

Hi Andrew — In the 2nd example, look at onDeleteClick on line 12 of User.js. That function composes the relevant data (the user’s id) and calls the function passed down on props. This avoids needing to do a bind in render in the parent.

Regarding different formatting, I added the missing semicolon. Let me know if there are other diffs that are distracting.

Thanks!

)
    Cory House

    Written by

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