In a medium saucepan, mix milk, half the sugar and salt. Cook until it comes to simmer.: You will notice a gentle steam and small bubbles forming at the edges as the milk warms, and the kitchen fills with a warm dairy aroma. Heating slowly prevents scalding, and that faint milk scent signals you are close to the right temperature. Stir occasionally to keep the surface smooth. If it suddenly boils vigorously, lower the heat to prevent scorching, because scorched milk will ruin the pastry cream's flavor.
In a medium mixing bowl, whisk together egg yolks, cornstarch and remaining sugar. Whisking constantly, slowly pour the milk mixture into egg yolk mixture. Cook over medium heat, until thickens. Whisk constantly.: There is a moment when the mixture transforms from glossy to noticeably thicker, and you will see it coat the back of a spoon. The whisking keeps the egg yolks from scrambling and ensures the cornstarch activates evenly. Listen for a gentle thickening sound and watch for steam; those are good signals. A common pitfall is pouring the hot milk too fast, which cooks the yolks into bits, so take your time and keep a steady stream.
Transfer to a mixing bowl of a stand mixer, add the butter and mix until butter is melted and the cream cools, about 5 minutes. Transfer to a smaller bowl and cover with seran wrap. Refrigerate for up to two days. Whisk before using. Mixture should be chilled before filling eclairs.: As you beat in the butter , the cream will become glossy and thicker, and the aroma deepens into a rich, custardy scent. Covering the surface with plastic prevents a skin from forming, and chilling firms the texture so it fills neatly. If the cream seems slightly lumpy after chilling, a brisk whisk or passing through a fine sieve smooths it out. Avoid overchilling to the point it becomes rock hard, because that makes piping difficult.
Place butter, sugar, salt and water in a medium saucepan. Bring to boil. Remove from the heat.: When the mixture reaches a rolling boil, you will hear a lively bubbling and see the surface churn. The melted butter and water should be fully combined, creating a glossy pool before you add the flour . This boiling step is essential so the steam builds for the loft of the choux. Do not skip the boil, otherwise the dough will be too loose and will not puff properly.
Sift the flour over the mixture and stir with a wooden spoon until it pulls away from the sides and a thin film forms on the bottom of the saucepan.: At first it seems sticky, then the mixture will suddenly come together and form a smooth ball that leaves a faint film on the pan. That sound of the spoon scraping and the visual cue of the film are your confirmation that enough water has evaporated. Stir vigorously to ensure even cooking of the flour, because undercooked flour gives a pasty raw taste in the finished shell.
Transfer the mixture into a large mixing bowl of a stand mixer and mix on low speed until the mixture cools to room temperature, about 1 minute.: As the dough cools slightly the steam dissipates and it becomes less glossy, more satiny, and easier to incorporate eggs . Mixing briefly prevents the eggs from cooking when added. A lukewarm dough feels tacky but not hot when touched. If it is still steaming hot, let it rest a touch longer so the eggs do not scramble when added.
In the meantime, preheat the oven to 450 degrees F. Line two baking sheets with parchment paper or silicone baking mats. Set aside.: The oven should be at full temperature so the initial burst of steam creates lift. You will feel the dry heat when you open the door, and the air should move quickly around the pans. Using parchment or silicone prevents sticking and helps the eclairs brown evenly. A common error is placing them too close together, which reduces circulation and leads to uneven rise.
Raise the speed of your mixer to medium and add eggs one at a time. Mix until soft peaks form. Transfer the dough into a pastry bag fitted with a large round tip or a Ziploc bag with a snipped corner (1" deep). Pipe 4 inch long and 1 inch wide pieces onto prepared baking sheets, leaving at least 2 inches of space between them (they will double or even triple in size).: The dough transforms into a shiny, pipeable paste and will stretch slightly when lifted, indicating proper consistency. As you pipe, the shapes should hold and show smooth surfaces. They will swell and become golden in the oven. If the dough is too loose, the shapes will flatten, so hold back a bit on the last egg if needed. Keep consistent pressure on the bag for uniform size.
Brush with egg wash. Bake eclairs for 18 to 20 minutes, until golden brown and cracks formed along the pastry. Cool on baking sheets for 3 minutes and transfer onto a wire rack to cool completely before filling and glazing.: The egg wash helps achieve a glossy, deeply colored crust, and the sound of light crackling as they cool is a good sign. The shells should feel dry and hollow when tapped. Transferring too early can cause them to collapse, so let them set briefly on the sheet. If they seem soggy inside, return to the oven for a few minutes to dry the interiors.
For the glaze: microwave chocolate and coconut oil in a microwave-safe dish until melted. Stir till smooth.: microwave chocolate and coconut oil in a microwave-safe dish until melted. Stir till smooth. : The aroma of melting chocolate is instantly comforting, and stirring yields a silky shine. The optional coconut oil helps the glaze set with a glossy finish. Take care not to overheat the chocolate, which can seize and become grainy. If it thickens, a touch of the reserved milk can loosen it gently.
Assembly: slice each eclair horizontally, fill with pastry cream and glaze.: slice each eclair horizontally, fill with pastry cream and glaze. : When you slice the shells, you will see the hollow interior ready to receive the chilled pastry cream, which should be smooth and thick. Fill evenly so each bite has the right cream to shell ratio, and dip or spread the glaze for a uniform coating. Work on a wire rack to catch drips and let excess glaze fall away. Avoid overfilling, or the eclair will become soggy and hard to handle.