did any one had this situation where you should replace an existing component with totally a different one - like an accordian.
<ComponentA /> (+ image) - click on this
<ComponentB /> (- image) -
Should I use states here? And Should I be having separate images on each component, but how to deal with positioning the images exactly at same location. Any simple example on how to communicate between such components would be helpful.Thanks.