-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yew Function Component Support #23
Comments
There're two sets of APIs that will be introduced:
This API will introduce a Purposed Syntax: use stylist::yew::styled_component;
#[styled_component(MyComponent)]
fn my_component() -> Html {
html! {
<div class=css!(r#"color: red;"#)>
{"Styled Text!"}
</div>
}
} (The syntax for the Both APIs will be context aware. |
I'm currently experimenting with having a branch that tracks yew@next until the release of 0.19. This could then host the hooks implementation. Current show stopper is yewdux not being updated to yewstack/yew#1961 yet. Guess it has to wait a bit. |
The working parts live on the yew-next branch now |
I do plan to cut at least one more release before introducing hooks (switching to track |
As per yewstack/yew#2052, I think the Yew 0.19 release is imminent. I have updated the master branch to track master branch of Yew and implemented the So as soon as Yew 0.19 is released we can release a version with function component support. |
The Yewdux and |
This issue aims to experiment with hooks API that will be adopted with the upcoming function component for Yew 0.19.
The text was updated successfully, but these errors were encountered: