Changes attr to prop