Reactjs Why Is This React Switch Case Not Working

Reactjs Why Is This React Switch Case Not Working