Rett syndrome is a rare genetic disorder. It affects the way the brain develops. It mostly affects girls.