* 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>
* Separate hydration and render queue.
* Revert "Fix issue with node refs and hydration (#2597)"
This reverts commit 469cc341c340bd0093d9233847f523b66a18fd90.
* Priority Render.
* Add some tests.
* Add more tests.
* Add test result after click.
* Fix test comment.
* Fix test timing.
* Restore test.
* Once AtomicBool, now a Cell.
* Prefer use_future.
* Revealing of Suspense always happen after the component has re-rendered itself.
* Shifting should register correct next_sibling.
* Revert to HashMap.
* cargo +nightly fmt.
* Fix comment.
* Optimise Code size?
* Add comment if assertion fails.
* Revert "Merge branch 'hydration-4' into fc-prepared-state"
This reverts commit 427b087d4db6b2e497ad618273655bd18ba9bd01, reversing
changes made to 109fcfaa127aefc5fa3c697e254fe2c049292be2.
* Revert "Revert "Merge branch 'hydration-4' into fc-prepared-state""
This reverts commit f1e408958d94cb13813ce75aa6f0aad06c9fa3e8.
* Redo #2957.
* improve js_callback example
it now loads two modules:
1. imp.js
2. unimp.js
imp.js is loaded at page load whereas unimp.js is loaded when requested. A fallback is displayed during loading using Suspense
* Hash is not hardcoded anymore
* pre_build hook to build the post build hook binary
* fmt
* add .gitignore for trunk_post_build executable
* move js imports to bindings module, upadte README
`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.
* Remove `web_sys` re-export
Removes re-exporting the `web_sys` dependency from the yew crate and
removes some `web_sys` features that were only enabled for re-exporting.
* re-export events through yew::events
* remove old files
* update counter
* update crm example
* Add readme for counter
* update custom_components
* update webgl example
* update two_apps
* update todomvc
* mark special case multithread
* update dashboard
* update examples readme
* file_upload example
* fragments example
* futures example
* game_of_life example
* inner_html example
* js_callback example
* keyed_list example
* remove large_table
* remove minimal
* mount_point example
* I can't count apparently
* nested_list example
* node_refs example
* timer example
* store example
* pub_sub example
* rip npm_and_my_sanity
* use a title™️
* clean up multi_thread
* fix format
* boids part 1
* boids part 2
* add workflow
See: <https://github.com/siku2/yew/pull/13>
* remove my little scratchpad again
* add boids to examples table
* runtime-generated list in nested_list example
* update workflow
* first batch of yewtil examples
* clippy "futures"
* remove old yew-router examples
* add a new router example to the main examples
* remove remaining yewtil examples
* more progress
* update for testing purposes
* author list
* improve content generation
* revert this mistake
I thought it would be great to use `unimplemented!()` in case the component doesn't have any properties.
This helps avoid the mistake of forgetting to update the change method when adding props later on.
What I didn't consider is that just because the props are () that doesn't mean that Yew isn't going to call it...
So yeah, it's still a good idea for update, but certainly not for change.
* missed a few
* turn router switch example into test
* seems to be working
* make it possible to host the router example on a sub-path
* create a 404 file for SPA
* remove the three examples and update table
* remove the 404 file because it isn't working anyway
* fix small router issue relating to the sub-path hack
* remove static directory, move script to run_example.sh
* gitignore
* server infra
* Support --build-only
* fix npm_and_rest example
* Fix various static index.html's
* Fix spacing
* newlines at the end
* Cleanup
* tabs -> spaces
* line ending
* remove build_examples.sh
* Apply suggestions from code review
Co-authored-by: Simon <simon@siku2.io>
* format file and improve EXIT trap
Co-authored-by: Simon <simon@siku2.io>
* Add render method to Component and auto implement Renderable
* More cleanup
* Rename Renderable method from view to render
* Doc fixes
* fix
* Update CHANGELOG.md