Heat the oven to 350° F and line 18 cupcake pan cups with liners. Sift together the flour, baking soda, salt, and cocoa powder and set aside. Use a standing mixer or hand-mixer to cream the butter. Add the sugar and vanilla and mix to combine. Add the eggs one at a time, beating after each one until smooth.