https://github.com/jdegand/tenzies
Scrimba Learn React Course - Section 3 Project
https://github.com/jdegand/tenzies
react scrimba scrimba-soloproject tenzies
Last synced: about 1 month ago
JSON representation
Scrimba Learn React Course - Section 3 Project
- Host: GitHub
- URL: https://github.com/jdegand/tenzies
- Owner: jdegand
- Created: 2022-01-25T22:01:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T22:07:04.000Z (over 3 years ago)
- Last Synced: 2025-01-22T09:12:49.402Z (9 months ago)
- Topics: react, scrimba, scrimba-soloproject, tenzies
- Language: JavaScript
- Homepage: https://jdegand.github.io/tenzies/
- Size: 347 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scrimba Learn React Course - Section 4: Tenzies Game
[Scrimba](https://scrimba.com/learn/learnreact/tenzies-project-intro-cof0d44bfad1fb88293fdc9d1)
[Live Link](https://jdegand.github.io/tenzies)

## Takeaways
- nanoid is quicker and smaller than uuid
- Lazy state initialization is useful for expensive calculations when setting state for the first time
- JSON.parse(undefined) crashes your program
- Even if useEffect is running almost all the time(like this app), it is better to include the variable in the dependencies array## Improvements
- Accessibility considerations
### Resources
- [Stack Overflow](https://stackoverflow.com/questions/5836833/create-an-array-with-random-values) - create array with random values
- [Stack Overflow](https://stackoverflow.com/questions/14832603/check-if-all-values-of-array-are-equal/35568895) - check values of array
- [Blog](https://bobbyhadz.com/blog/javascript-check-if-all-object-values-equal) - check object values
- [NPM](https://www.npmjs.com/package/react-confetti) - React Confetti
- [Stack Overflow](https://stackoverflow.com/questions/21294302/converting-milliseconds-to-minutes-and-seconds-with-javascript) - converting milliseconds
- [Toptal](https://www.toptal.com/software/definitive-guide-to-datetime-manipulation) - datetime manipulation