In large mixing bowl, whisk together white rice flour, granulated sugar, potato starch, cocoa powder, baking powder, salt, and xanthan gum. Add vegetable oil, coffee, and eggs. Using a handheld mixer, mix until a thick batter forms, about one minute. Spread batter evenly into prepared pan or spoon into cupcake cups. Fill each cavity about 2/3 full. Bake until cake tester inserted into center of cake comes out clean, about 18 minutes. Cool cake on a wire rack. Remove cupcakes from pan after five minutes.
Frost when cool. If desired sprinkle coconut over cake or dip tops of iced cupcakes into coconut.