"Before microchips existed, computers were built with mechanical relays." Should probably say something about vacuum tubes as well!
And discrete transistors. Now that my curiosity is piqued, I found this nice timeline: https://www.computerhistory.org/timeline/computers/ It looks like transistorized computers were dominant at the point when integrated circuits were introduced.
It turns out both are true [1]. The "integrated circuits" were sort of "flat-packs" of RTL circuits. I had forgotten that early IC's were not quite what we envision today. Regardless I suppose ICs were RTL before they were TTL (before they were CMOS, etc.).
[1] https://en.wikipedia.org/wiki/Apollo_Guidance_Computer#Logic...