Aug 29, 2017 · 1 min read
This is right solution in case if we want to prevent Component rerender, but there is another problem, child component is responsible to invoke onClick handler with right parameters (userId), in case if we will change deleteUser method to get as parameter the whole user object, we need to change children implementation and invoke onClick with the right parameter.