Coconut candy with pineapple adds a tropical twist to this classic Mexican confection. This family-friendly treat is a chewy, fruity, sweet candy with bold tropical flavors.
Line an 8x8 inch baking pan with parchment paper and lightly grease for easy removal of the cocada.
In a medium saucepan over medium heat, combine the shredded coconut, diced fresh pineapple, sweetened condensed milk, sugar, vanilla extract, and salt.
Stir the mixture continuously and cook for about 20–25 minutes, reducing heat to low if mixture starts to brown too quickly. The mixture should become thick and sticky.
Once thickened and all excess liquid is absorbed, immediately pour and press the hot mixture evenly into the prepared pan using a spatula.
Allow to cool at room temperature for at least 1 hour so the candy sets. Cut into small squares and serve.