How benbezac/word-guess works
This is a small browser-based hangman game. The browser entry point mounts the game; the game selects a random word, accepts guesses from its letter buttons or keyboard, updates the game state, and displays the result. The letter list is bundled locally. The entry point explicitly unregisters the optional service worker, so offline caching is not enabled by this code. The graph is based on the shown source; the word-list contents were not sampled.
Main entry points: App.js Game state and display · index.js React entry point · wordList.json Word list · Letter.js Letter button
Components 6
Hangman game
- Game state and display
src/App.js - Word list
src/data/wordList.json - Letter button
src/components/Letter.js
Browser runtime
- React entry point
src/index.js - Service worker support
src/serviceWorker.js
Other components
- Player
Connections 5
- React entry point → Game state and display: mounts
src/index.js - Game state and display → Word list: selects randomly
src/App.js - Game state and display → Letter button: renders
src/App.js - Player → Game state and display: guesses letters
src/App.js - React entry point → Service worker support: unregisters
src/index.js