Misleading title. The technique does not prevent all hereditary disease.
DNA from both parents can be injected into a donor egg, which uses the donor’s mitochondria. This is used to keep a child from inheriting a mitochondrial disease from the mother. These are the specific set of hereditary diseases this technique prevents.
All other hereditary diseases are not prevented by this.