Take the free end from the remaining eight-inch black wire and join it towards the black wire within the dimmer change, using a wire connector.
The set up is a lot more comprehensive than other options on our listing, https://medium.com/@thankful_quartz_chinchilla_746/effortless-illumination-advantages-of-motion-sensor-cabinet-lights-496dcf828e0e