It depends on how long the strip is. I usually do it in two or three pieces to make it easier to secure it. On the one pictured above, I did in two sections and I soldered them together and to a plug that I soldered to the board. That way the white section can be lifted off and simply unplugged if anything needs to be serviced or repaired. Look closely just above that second stepper motor, and you can see that tiny white plug with two white wires plugged into it. The red and black wires on the strips are soldered to those white wires.
Here's another plug just like that one. I think I robbed these off an old computer printer that I gutted for any usable parts before throwing it away.
View attachment 190218