I am trying to add visual transitions to my components in React, and was wondering how I could accomplish that. At the moment, my page is intended to display artists, and renders them by checking the state.
For example if this.state.artists is ["Drake", "Migos", "Taylor Swift"], the render method loops through this and renders a card for Drake, Migos and Taylor Swift. If this state is updated, say if Taylor Swift is removed, the page is re-rendered, rendering a card for Drake and Migos only, thus removing Taylor Swift.
My question is, how can I add a transition for this removal of the Taylor Swift card? I was looking at possible options at transitions, and started wondering if I might have a fundamental problem in the fact that I am not necessarily removing the card outright, it is just re-rendering without that card.
I can provide code if helpful, but this is less of a code question and more of a conceptual question.