Superior catalytic activity derived from a two-dimensional Ti3C2 precursor towards the hydrogen storage reaction of magnesium hydride.