-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Can I use component/package from npm ? #805
Comments
Your mention of external state management makes me think that you want to integrate Yew components as part of an existing React (or equivalent) project. In that case, I would point you towards https://docs.rs/yew/0.10.0/yew/app/struct.App.html#method.mount_with_props which would attach a Yew component with a given set of properties to an element. You would have to write a shim exposing this function to JS using wasm_bindgen, or possibly using stdweb instead though. If you want to use React (or equivalent) components from within a Yew application, I don't think there is a precedent for that, although it may be possible. I would start looking at the I think trying to use mobx/redux from within Yew itself (as opposed to the JS component wrapping it) would be messy, given that Yew has its own state management system built into it. Edit: |
Thanks for the reply. based on that, there's something more I would like to ask:
|
|
Seems like all questions have been addressed |
Description
I'm submitting a ... question
Writing everything from zero is quite a task. I wish I could use the component available while reimplement some in yew. Also, mobx like state management is necessary for me.
The text was updated successfully, but these errors were encountered: