There wasn't Twitter or Facebook in 1918, but the 1918 flu pandemic was headline news in every major newspaper. There
were massive shutdowns and ordinances to require mask-wearing were enacted. Parts of the US came to a standstill. That we've
forgotten about all of that says more to our biases and the quality of our education system, rather than lack of precedent.
There are many lessons to be learned from 1918, despite all the changes since then. Probably the most relevant one is just how forgotten it had become. If we manage to develop and distribute a COVID-19 vaccine, a few years from now we'll reminisce: remember 2020? Gosh, how weird that was!
There are other lessons too. Like that social distancing works.
Or that rushing to lift restrictions too soon just leads to outbreaks.
America's Forgotten Pandemic: The Influenza of 1918, by Alfred W. Crosby is on Kindle and is interesting reading.
https://www.amazon.com/dp/B00E3UR4EI/