Best Way to Connect to a Component's Solder Terminals?

The best way is a PCB mounting connector. With those you showed wires are the only way.