Skip to content

v0.5.0

Compare
Choose a tag to compare
@yishn yishn released this 23 Sep 01:37
· 22 commits to main since this release
  • BREAKING: Removed c! and Fragment, instead children can be built using a tuple, e.g.

    h!(div).build((
      h!(h1).build("Hello"),
      h!(h2).build("World!")
    ))
  • BREAKING: Removed Callable trait and PersistedCallback, only Callback and Void are left of the previous wasm_react::callback module and moved to wasm_react::Callback and wasm_react::Void. Callbacks can now be passed directly into props without persisting them with use_callback() first.

  • BREAKING: Removed VNodeList, replaced by VNode. VNode is now an enum. VNode::empty() has been renamed to VNode::new().

  • Added callback! macro to create Callback's which can clone-capture its environment.