Why do I need a junction box? : r/AskElectricians
If the new light fixture has its own built in junction box containing the splice then you''re ok - just use the proper strain relief connector and staple the wire within 12 inch of the light.
Read More