SHL Global Interview Question

Syntax of normal react class