Is it possible to use anvil like ReactJS?

Hello,

I really like anvil. I wondered, if there is an easy way to make an anvil app reactish, like ReactJS. It seems, in principle anvil is composed similiar ReactJS, components and sub-components.

What I mean by that is:
There is a state in the “top”-component. The necessary part of the state is given to respective “sub”-components. Everytime the state changes the output (Virtual-DOM) of all components is calculated. The Browser-DOM and Virtual-DOM are compared and only the diff is written to the Browser-DOM.
So basically, after every change in state the app is automatically rerendered and up to date. You do not have to worry about updating the view. You simply update your state and that’s it.

I imagine making anvil apps like that, would be a lot of fun. Is there a way to use anvil like that?

Greetings
Christoph