The biggest shift in my mental model of React was considering it closer to a programming language than traditional UI libraries. Dan hints at this when describing how it is used to manipulate view trees and proposing special syntax for hooks.
https://reactjs.org/docs/hooks-faq.html#what-is-the-prior-ar...