mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* example of function memory game * refactor: remove unnecessary manual PartialEq implementation * refactor: remove unnecessary license note * refactor: update implementation and doc with suggestions * refactor: fix format and lint issues
15 lines
795 B
Markdown
15 lines
795 B
Markdown
# Memory Game Example
|
|
|
|
[](https://examples.yew.rs/function_memory_game)
|
|
|
|
This is an implementation of [Memory Game](https://github.com/bradlygreen/Memory-Game) for Yew using function components and hooks.
|
|
|
|
## Concepts
|
|
|
|
- Uses [`function_components`](https://yew.rs/docs/next/concepts/function-components)
|
|
- Uses [`gloo::storage`](https://docs.rs/gloo-storage/0.2.0/gloo_storage/index.html) to persist the state
|
|
- Uses [`gloo::timers`](https://docs.rs/gloo-timers/0.2.2/gloo_timers/index.html) to schedule asynchronous callback
|
|
|
|
## Note
|
|
|
|
Images are authorized by [@bradlygreen](https://github.com/bradlygreen), see [authorization-issue](https://github.com/bradlygreen/Memory-Game/issues/6) |