crochet icon indicating copy to clipboard operation
crochet copied to clipboard

Explorations in reactive UI patterns

Results 7 crochet issues
Sort by recently updated
recently updated
newest added

While playing around with Crochet and porting the Iced todo example, I wanted to write my own `use_state` and `use_future` hooks, but ended up struggling with the current mutation API,...

It would be nice if there was an example of how to update the UI in reaction to external events without async/await. Or is the idea that one would always...

I understand why localization is always treated as an afterthought and every time a new approach to GUI comes up it comes with some version of: ```rust Label::new(format!("current count: {}",...

Hi Raph! Great work! At my work we use a custom language which does not support captures in lambdas. Instead we have simple definitions of semantic macros. Reading the counter.rs...

For example, `button("text", cx)` could be shorthand for `Button::new("text").build(cx)`, and this could be a standard pattern for simple components. The question is: would the simple form be usable in enough...

The component macro helps to wrap the function body inside `Cx::begin_loc` and `Cx::end` to avoid key collision.