⚖️ へ vs. に
Choose either for a simple destination, but keep に for the other patterns you have learned.
Coco-sensei

Learn
Both 学校 へ 行きます and 学校 に 行きます can mean “I’m going to school.” The emphasis differs slightly—direction with へ, destination with に—but both work in this example.
に has other uses that へ cannot replace in these patterns. 家 に います describes location, and 月曜日 に 会います marks time. Do not change those に particles to へ just because both particles can occur with 行く.
Ask what the particle is doing. For a destination with “go,” “come,” or “return,” either may work. For existence or time, use the に pattern you learned. Avoid a blanket rule that every に can become へ, or every へ can become に.
Examples
学校 へ 行きます。
I’m going to school.
学校 に います。
I’m at school.
家 へ 帰ります。
I’m going home.