# What is the current behavior? When clicking the button  - Phase 1: current element's opacity = 1 - Phase 2: current element's opacity becomes 0 (with animation/transition) - **Phase 3 (bug, react 18 ONLY): current element's opacity becomes 1 without animation/transition** - Phase 4: current element disappears - Phase 5: next element opacity appears with opacity = 0 - Phase 6: next element's opacity becomes 1 (with animation/transition) <!-- ... --> # What is the expected behavior? Phase 3 shouldn't exist in react 18 renderer. <!-- If your use case is complicated, please be as descriptive as possible. --> # Could you provide a CodeSandbox demo reproducing the bug? In demo's index.js, try changing `legacyReact` value to switch react 18 behav https://user-images.githubusercontent.com/13043196/162848290-d2c339e7-ec75-45e3-84e0-298a6ea092e1.mp4 ior. https://codesandbox.io/s/wonderful-glade-n0n92s?file=%2Fsrc%2Findex.js