From AngularJS to React, Math.js 1.0