Build a Whack-a-Mole game in React.
Requirements:
- Display a grid of holes (e.g., 3x3 or 4x4).
- Randomly show a "mole" in one hole at a time for a short duration.
- Allow the player to click the mole to score points.
- Keep track of the score.
- The game should run continuously, with moles appearing in random holes.
- Focus on functionality over styling.