Shirley Temple played herself. As a child actress, no other performer portrayed her in her films. She was the star, not a character portrayed by someone else.
If you're asking about biographical portrayals in later works: various actresses have played young Shirley Temple in documentaries and TV movies, but in her own 1930s films, she is Shirley Temple.