mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
`Model` is ambiguous and not a user-friendly name. Some of the newer docs are already referring to the root component as `App`. This PR follows this naming scheme: - `App` for a root component - `MyComponent` for an arbitrary component This naming is inspired by the React docs. i18n references were not changed. They need a larger rewrite which will go in a separate PR.
Two Apps Example
This example runs two Yew apps which communicate with each other.
Concepts
The example illustrates how one can take control of the mounting process which is usually done by yew::start_app.
Improvements
Instead of using the same component type twice, the example could use two entirely different components that communicate with each other. One of the components could even accept a generic "remote" component using a trait.
This example is very similar to mount_point.
The two should be merged into a single example.