Or if you don't care about refreshes, you could port all of it to node, as react can run on the server easily
— I would posit most DOM-manipulating things can be run on the server just fine
— Jsdom? :P
— Hmm, I am realizing the uniques map my be problematic
— On deletions, how would it know to remove unique characters from that set? it would not, off-hand, know that another word also shares those characters, or not