* Add `--open` to `boids`
* Added running instructions to `contexts`
* Amended `counter` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Amended `counter_functional` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Amended `dyn_create_destroy_apps` instructions
- Added `--open` flag
- Removed unnecessary instructions on how to run with `release` profile
* Added running instructions to `file_upload`
* Added running instructions to `function_memory_game``
* Amended `function_router` instructions
- Amended `release` profile instructions
- Added `--open` flag
* Added running instructions to `function_todomvc`
* Added running instructions to `futures`
* Added running instructions to `game_of_life`
* Added running instructions to `immutable`
* Added running instructions to `inner_html`
* Added running instructions to `js_callback`
* Amended `keyed_list` instructions
- Added `--open` flag
- Amended `release` profile notice
* Added running instructions to `mount_point`
* Added running instructions to `nested_list`
* Added running instructions to `node_refs`
* Amended `password_strength` instructions
- Added `--open` flag
- Amended `release` profile notice
* Added running instructions to `portals`
* Amended `router` instructions
- Added `--open` flag
- Amended `release` profile notice
* Amended `simple_ssr` instructions
- Simplified wording
- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/simple_ssr` directory like every other example
* Amended `ssr_router` instructions
- Removed unnecessary notes
- Changed commands so that they should be executed from the `examples/ssr_router` directory like every other example
* Added running instructions to `suspense`
* Added running instructions to `timer`
* Added running instructions to `todo_mvc`
* Added running instructions to `two_apps`
* Added running instructions to `web_worker_fib`
* Added running instructions to `webgl`
* Amended various examples
- Simplified running instructions
- Moved running instructions to the bottom of each `README.md`
* Amended `examples/README.md` instructions
- Added `release` profile notice
- Added `--open` flag
- Removed `--release` flag
* Apply grammar suggestions from code review
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
* Update examples/function_router/README.md Grammar
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
* Add Grammar Suggestions from Review
* Apply Spelling Suggestion
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
---------
Co-authored-by: Kaede Hoshikawa <futursolo@users.noreply.github.com>
`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.
Updates to using the latest stable gloo, in some cases removing
dependencies on `master` branch.
Removes `weblog` in favour of `gloo_console`, where applicable.
* Naive implementation of destroy app
* Move functions get_component_link and destroy
The function get_component_link and destroy on App does not require
Component::Properties to be Default. So move them to their own impl
block.
* Change the fn signatures for the other mount fns too
* Add example of how to use the apps dynamically
* Rename example
* Change title of example html file
* Update examples/dyn_create_destroy_apps/src/counter.rs
Co-authored-by: Simon <simon@siku2.io>
* Change fn signatures of App to not take Self
* app.rs thorugh to public API: only make it possible to create an
instance of an App by mounting it. And only make it possible to mount
an App by creating it. This prevents double mounting.
* Change Scope::mount_in_place to take &self instead of self, because it
doesn't have too.
* Fix examples to compile with new App signature
* Fix tests to compile with new App signature
* Remove pub pulic App::mount* API
* Make the documentation compile again with the new start_app API
* Make the examples compile again with the new start_app API
* Make the yew packages compile again with the new start_app API
* rename module yew::app to yew::app_handle
* Fix identation in styling file for dyn_create_destroy_app ex
* Fix naming in examples/dyn_create_destroy_apps/README.md
Co-authored-by: Simon <simon@siku2.io>
* Use Self instead of AppHandle to create AppHandle
Co-authored-by: Simon <simon@siku2.io>
* Fix the start_app_in_body docs
Co-authored-by: Simon <simon@siku2.io>
* Remove comparison with Elm in the start_app docs
Co-authored-by: Simon <simon@siku2.io>
* Fix english in dyn_create_destroy_apps example
Co-authored-by: Simon <simon@siku2.io>
* Impl Deref instead of AsRef for AppHandle
* Formatting
* Remove AppHandle::new use Default trait instead
* Rename the Yew::start_app* function names
* Revert "Remove AppHandle::new use Default trait instead"
This reverts commit 97e4897c1edafac34e012f13bc2b5084f68f8dce.
* remove default impl for AppHandle
* Make the tests compile again
* Make the examples compile again
* Add dyn_create_destroy_apps to examples/README.md
* Remove mount_to_body_with_props
Co-authored-by: Simon <simon@siku2.io>
* Use yew getters instead of query selectors
Co-authored-by: Simon <simon@siku2.io>
* Remove AppHandle::new
* Remove unused function
* code style fix
* Fix compile error
* Add func set_custom_panic_hook
This commit adds the function set_custom_panic_hook. In addition Yew
will now check if a custom panic is registered when one of start_app*
functions are called, if that is not the case a default panic hook is
registered.
* Fix docs for set_custom_panic_hook
Co-authored-by: Simon <simon@siku2.io>
Co-authored-by: Nicklas Warming Jacobsen <nwj@skybox.gg>
Co-authored-by: Simon <simon@siku2.io>