Preheat oven to 350°F (180°C).
Grease an 8-inch (20 cm) round or oval baking dish.
In a large bowl, whisk together eggs, sugar, milk, butter, and vanilla.
Stir in shredded coconut, baking powder, and salt until combined.
Let the batter rest for 5 minutes so the coconut absorbs some liquid.
Pour into the prepared baking dish.
Bake for 30–40 minutes, or until the top is golden brown and a toothpick inserted in the center comes out clean.
Cool for 10–15 minutes before slicing.
