News for hackers. Stuff that matters.
Re:Single Page Applications using Rust by iamwil on Tuesday August 11, 2020 @07:29PM (#24127138)
React team seems to have realized the same thing, and their solution is to what they call React Hooks. It allows devs to write the implementation of the business logic imperatively, but the calling it is effectively declarative.

The hooks are then used to split out the business logic of the app from its view.

Re:Single Page Applications using Rust by freeone3000 on Tuesday August 11, 2020 @09:12PM (#24127682)
This reminds me amazingly of writing HTML and binding JavaScript to layout to handle events.
Re:Single Page Applications using Rust by iamwil on Wednesday August 12, 2020 @01:59AM (#24128976)
It's not quite the same. The main difference is that the data-binding is only one way, so it make the whole thing a lot easier to reason about.