Preheat the oven to 350°F and set an oven rack in the middle position. Preheat the oven to 350°F and set an oven rack in the middle position. Line two nonstick 24-cup cupcake pans with paper liners. Lightly spray the top of the pans with a nonstick cooking spray with flour, such as Baker's Joy or Pam Baking Spray with flour, just in case the cupcake tops stick to the pan.
Sift together the flour, cornstarch, and baking soda to remove any lumps in a large bowl; set aside. Whisk together the coconut milk and lemon juice; set aside.
In the bowl of a stand mixer fitted with the paddle attachment, combine the unsalted butter, sugars, pure vanilla, coconut extract, clear vanilla, and salt.
On medium speed, beat until light and fluffy for about 5 minutes, stop and scrape the bowl, and paddle with a rubber spatula as necessary. Beat in the eggs, one at a time, on medium speed until well combined, about 2 to 3 minutes, and scrape down the sides of the bowl as necessary.
Turn the speed down to low and beat in one-third of the flour mixture, followed by half of the coconut milk mixture; scrape down the sides of the bowl. Next, add another one-third of the flour mixture, followed by the remaining coconut milk mixture.
Beat in the remaining flour mixture, then scrape down the bowl and beat again until the batter is just combined. Quickly mix in the shredded coconut; do not overmix.
Give the batter a few final folds with the spatula to ensure the batter is well mixed and smooth; there should be no streaks of fat or liquid. Then, evenly spoon the coconut batter into the prepared cupcake pans, filling each cup about three-fourths full.
Give the pan a few taps on the counter and bake the Coconut Cupcakes until lightly golden, about 20 to 25 minutes, or until a toothpick inserted in the center comes out clean. Let the coconut cupcakes cool in the pans for about 10 minutes, then transfer them to a wire rack to cool completely for about 1 hour.