A more complete snippet for a react class