In a large bowl, mash the ripe bananas with a fork until smooth.
In a separate bowl, whisk together the flour, baking powder, baking soda, and salt.
To the mashed bananas, add the sugar, egg, oil or melted butter, and vanilla extract (if using). Mix well.
Gradually add the dry ingredients to the wet ingredients, stirring until just combined. Be careful not to overmix, as this can lead to a tougher texture.
Pour the batter into the prepared loaf pan and smooth the top with a spatula.
Bake for 50-60 minutes, or until a toothpick inserted into the center of the loaf comes out clean.
Allow the banana bread to cool in the pan for about 10 minutes, then transfer it to a wire rack to cool completely.