A [2+2] cross-photodimerisation of photostable olefins via a three-component cocrystal solid solution.