Inspired by @hakimel. This is React implementation of the Hakim El Hattab 'CheckWave'. You can find Svelte version of this code here, with overall greater perfomance.