I just want to add a fade in animation to next index. i found a package called “react transition group” but all tutorials were based on class components or redux I didn’t understand anything. Answer SwitchTransition waits for the old child to exit then render the new child as mentioned in the react transition group website. there are two modes: