import React from 'react';

import VizFlowsSankey from './VizFlowsSankey';
import promisedComponent from './promisedComponent';

class Dashboard extends React.Component {

  componentDidMount() {
    document.title = "LedgerDB";
  }

  render() {
    return (
      <div>
        {React.createElement(promisedComponent(VizFlowsSankey))}
      </div>
    );
  }
}

export default Dashboard;

import React from 'react';

import VizFlowsSankey from './VizFlowsSankey';
import promisedComponent from './promisedComponent';

class Dashboard extends React.PureComponent {

  componentDidMount() {
    document.title = "LedgerDB";
  }

  render() {
    return (
      <div>
        {React.createElement(promisedComponent(VizFlowsSankey))}
      </div>
    );
  }
}

export default Dashboard;

Fix javascript warning with React.PureComponent
Fix javascript warning with React.PureComponent
