A simple thiol–ene click chemistry strategy to develop upconverting nanocrystals with different functional groups.