syn-rsx
syn-rsx copied to clipboard
Spread Attributes / Functional Update Syntax
- JSX is
<div {...props} />(https://zhenyong.github.io/react/docs/jsx-spread.html#spread-attributes) - Yew went with
<div ..props />, inspired by Rust's functional update syntax (https://doc.rust-lang.org/stable/reference/expressions/struct-expr.html#functional-update-syntax)
This might already be possible with the transform_block configuration, but not exactly sure yet.
This would be very useful. Any pointers on how you were thinking of implementing it? I can submit a pull request.