Conventional optical components such as lenses, waveplates and holograms rely on light propagation over distances much larger than the wavelength to shape wavefronts. In this way substantial changes of the amplitude, phase or polarization of light waves are gradually accumulated along the optical path. This Review focuses on recent developments on flat, ultrathin optical components dubbed 'meta...