I have two examples of calling onRemove method on button click in jsx . However although there is no compilation error , the example 2 doesnt render anything on screen which mea