import Grow from '@material-ui/core/Grow'; import { ReactNode, useEffect, useState } from 'react'; export default function FadeThroughTransition(props: { from: ReactNode; to: ReactNode; show: boolean; }) { var [firstRender, setFirstRender] = useState(true); useEffect(() => { setTimeout(() => setFirstRender(false), 0); }, []); return
{props.from}
{props.to}
; }