Using legact es6 syntax because the current transpiler is broken