Preheat the oven to 350 degrees Fahrenheit and line baking sheet with parchment paper or with silicone baking mats.
In a medium sized saucepan, combine the sugar, butter, milk and water. Bring the mixture to a small simmer.
Once the sugar and butter mixture have started to simmer, add the flour and mix continuously so that it doesn’t stick to the bottom of the pan.
Carefully transfer the dough to a stand mixture and with a paddle attachment and mix on low for 2-3 minutes. While the dough is mixing, start adding in the eggs one at a time. Make sure to allow the eggs to completely mix before adding in the next egg to the mixture. Once the eggs have been combined with the dough, add the vanilla and salt then mix the dough for an additional 2-3 minutes.
Transfer the dough to a bag for piping out the eclair pastry onto the prepared baking sheet. Add a medium sized round tip (I used a Wilton size 199). Pipe them about 5 inches long.
Once all of the eclairs are piped, place them into the oven and bake for 35 to 40 minutes, or until they start to brown and look glossy. DO NOT OPEN THE OVEN DOOR DURING BAKING. This can ruin the eclairs.
Once baked, piece an eclair with a toothpick and make sure they are hollow. If not hollow, bake for an additional 5 minutes.
Allow the pastry to cool before filling with cream.