use-outgoing
Keeps the content that was just replaced for the length of its exit, so it can fade out in CSS while the new content fades in. Give it a key and what is shown under that key; it returns the previous pair until the duration has passed.
use-outgoing
Keeps the content that was just replaced for the length of its exit, so it can fade out in CSS while the new content fades in. Give it a key and what is shown under that key; it returns the previous pair until the duration has passed.