how to add component on button click in react