conform to react .12