yew/examples/two_apps
WorldSEnder daf6ec0152
Reduce size of examples (#2601)
* Reduce size of examples with this one weird trick

* oops, fixup function_router
2022-04-11 17:02:59 +05:00
..
src `#[cfg(feature = "render")]` and `yew::Renderer` (#2498) 2022-03-20 00:48:47 +09:00
Cargo.toml `#[cfg(feature = "render")]` and `yew::Renderer` (#2498) 2022-03-20 00:48:47 +09:00
README.md Update documentation for the new examples (#1586) 2020-09-23 03:47:28 +02:00
index.html Reduce size of examples (#2601) 2022-04-11 17:02:59 +05:00

README.md

Two Apps Example

Demo

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.