We used to use Solarcaine spray ... or have a bath in cool water with baking soda in it ...

I try to avoid it in the first place, being a pale white person, so have gotten pretty good about sunscreen. My mother was always VERY insistent that we use sunscreen, bless her - I am sure she didn't want to deal with children in pain, either!