SHL Global interview question

Syntax of normal react class