Morsecode-Potato
· 1 min read

Morsecode-potato is a fun experiment to understand how to use react hooks to package functionality.
In this experiment, I created:
-
Custom hooks to translate and execute morsecode.
- useMorse - Translates text to international morse (ITU-R M.1677-1) returns a “morse” string
- useMorsePlayer - Plays a morse string as audio, as a silent visual signal, or both in sync — one clock drives everything, so sound and light can’t drift.
-
Demo page
- A tailwind styled react app
- Color scheme (shift) is old timey telegraph station.
- Sections are:
- The input text area
- Playback buttons
- Abbreviation reference table