Module 5 · Check it yourself · challenge 2 of 2 in this lesson
CoinCounter follows the real leaderstats Coins value
You compare your work with the list of what done means.
Open
Level 2, Builder
Challenge
Make the counter live: keep the coin count in state and update it from the leaderstats Coins value.
- Start from
- The game at milestone m09 (download)
Done means
- CoinCounter follows the real leaderstats Coins value
- The connection is made in useEffect and disconnected in its cleanup
- Picking up a coin updates the label without any manual property write
Meet the criteria above, then record your own result. No test grades this check.