Either way is fine, but be aware of - 回複:回國探親和h1b?
1) if you leave after filing I-129, and you enter under F-1, your H-1 petition becomes void
2) if you leave after filing I-129, and H-1 is approved, you may not enter under H-1 until 10 days prior to H-1 effective date.