Open rlasjunies opened 4 years ago
I'm not sure that the derive
macro should be just a "good to know" because you shouldn't try to implement Properties
manually for a type.
I put it their because it in in the current documentation. I take the remark, of course you will revise the documentation update. I currently drafting the proposal. Writing I am already adjusting the proposal made initially I hope I will have something to propose in the afternoon.
Finally I've something I feel confortable for newbies like me. The current proposal looks like this:
I did my best to be sure, I do not loose previous information. Please let me know what you think.
@jstarry @teymour-aldridge I've created a dummy projects to tests the example before to put in the documentation. you could find here https://github.com/rlasjunies/yew-doc-examples
If you are interested we can put it in the Yew/stack
@teymour-aldridge
I'm not sure that the
derive
macro should be just a "good to know" because you shouldn't try to implementProperties
manually for a type.
Please check if the documentation is correct in regard of your comment. Mainly in the chapter 'Properties'
'Callback' word could be confusing and is used for different concepts in Yew, Events seems to be easier to understand in the domain of HTML component interaction
The documentation may be improved with a structure inspired by the one of StencilJS.com ( there is some similarity between the projects)
Could be something like:
...
Components
properties: overview
Events:
Nested components
Styling