Autoscroll Text Area

Working on implementing a log sink. I found another thread (My Perspective Logger Component) with great sample code. It’s writing new lines to the top of the log rather than appending to the bottom, perhaps to avoid the need to keep the TextArea scrolled to the bottom.

Searching for how to do that, I’m not following the sample code shared in this thread. Anyone have a modern solution. This thread is 12yr old.