An experiment macro to automatically derive Properties structs from args for Yew components. (#3275)

* Update properties.mdx

* Update awesome.md

* prettier'
This commit is contained in:
Valentin Golev 2023-06-01 16:30:39 +02:00 committed by GitHub
parent b5de832c77
commit b9990e8410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,7 @@ description: 'Community projects built using yew'
- [Yew Form](https://github.com/jfbilodeau/yew_form) - Components to simplify handling forms with Yew.
- [yew-component-size](https://github.com/AircastDev/yew-component-size) - A Yew component that emits events when the parent component changes width/height.
- [yew-virtual-scroller](https://github.com/AircastDev/yew-virtual-scroller) - A Yew component for virtual scrolling / scroll windowing.
- [yew-autoprops](https://crates.io/crates/yew-autoprops) - proc-macro to automatically derive Properties structs from args for Yew components.
### Hooks

View File

@ -298,3 +298,7 @@ These include, but are not limited to:
so you may have to manually force a render. Like all things, it has its place. Use it with caution.
3. You tell us. Did you run into an edge-case you wish you knew about earlier? Feel free to create an issue
or PR a fix to this documentation.
## yew-autoprops
[yew-autoprops](https://crates.io/crates/yew-autoprops) is an experimental package that allows one to create the Props struct on the fly out of the arguments of your function. Might be useful, if the properties struct is never reused.