syn-rsx icon indicating copy to clipboard operation
syn-rsx copied to clipboard

Spread Attributes / Functional Update Syntax

Open stoically opened this issue 3 years ago • 1 comments

  • 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.

stoically avatar Oct 22 '22 16:10 stoically

This would be very useful. Any pointers on how you were thinking of implementing it? I can submit a pull request.

ifiokjr avatar Jan 25 '23 10:01 ifiokjr