object literal cannot have multiple properties with the same name in strict mode code example

Example 1: PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;

//From
public function TSStatus($host, $queryPort);

//to
public function __construct($host, $queryPort);

Example 2: javascript check if is array

var colors=["red","green","blue"];

if(Array.isArray(colors)){
    //colors is an array
}

Example 3: react must be in scope when using jsx

Must include "React" in the import line, see line 2.
Import React, { Component } from "react";