What do you do to stop tantrums

My lo has been throwing tantrums in public when I try to hold his hand...

At home I can distract him when he throws tantrums and give him something else to do but outside theres not much I can do

how do you guys stop ? He always wants his independence outside esp when we are near crosswalks etc !!