Add React type definition