It is not against the law for him to “campaign” for president as he is not yet qualified as a candidate. Should he be the Republican candidate either for the primary or for the election then his resignation is required.
Correction. To qualify means the proper paper work and fees have been made. My mistake. It is still an official process outlined in statute. It does not mean being selected as the candidate.