Grease a 9×13-inch baking pan with butter or cooking spray and set aside.
Melt the butter in a large pot over medium-low heat, swirling occasionally until fully melted.
Add the marshmallows and stir continuously until they're completely melted and the mixture is smooth, about 4–5 minutes.
Remove the pot from the heat and stir in the vanilla extract and salt.
Working quickly, dump in the puffed rice cereal and fold everything together with a rubber spatula until every piece is evenly coated.
Tip the mixture into the prepared pan and, using lightly buttered hands or a buttered spatula, press it down into an even layer.
Scatter the rainbow sprinkles over the top and press them in gently so they stick.
Leave to cool at room temperature for at least 30 minutes, then cut into 24 squares and serve.