import { useEffect, useRef } from 'react' export default function TextLog({ log }) { const textLog = useRef(null) useEffect(() => { textLog.current.scrollTop = textLog.current.scrollHeight }, [log]) return ( <>