import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './_store/root';
import Perf from 'react-addons-perf';

// import { whyDidYouUpdate } from 'why-did-you-update';
// whyDidYouUpdate(React, { include: [/TradeCard/, /TradeParams/], exclude: [/^Connect/, /IntlProvider/] });

window.performPerfTest = () => {
	Perf.start();
	setTimeout(() => {
		Perf.stop();
		const measurements = Perf.getLastMeasurements();
		Perf.printInclusive(measurements);
		Perf.printWasted(measurements);
	}, 10000);
};

window._trackJs = { // eslint-disable-line no-underscore-dangle
    token: '346262e7ffef497d85874322fff3bbf8',
    application: 'binary-next-gen',
    enabled: window.location.hostname !== 'localhost',
};
require('trackjs');

ReactDOM.render(<Root />, document.getElementById('root'));

@@ -742,16 +742,86 @@
 lhost',%0A
+%09userId: (JSON.parse(localStorage.getItem('account')) %7C%7C %7B%7D).loginid,%0A
 %7D;%0Arequi

Send userId to trackjs