atsid/generator-ats-node-webapp

View on GitHub
generators/client-react/templates/client/app.js

Summary

Maintainability
A
0 mins
Test Coverage
const Application = require('./components/Application');
const React = require('react');
const ReactDOM = require('react-dom');

window.onload = function onload() {
  // Facebook Authentication adds this value to the location hash
  if (window.location.hash.indexOf('_=_') > -1) {
    window.location.hash = '';
  }
  ReactDOM.render(<Application />, document.getElementById('app'));
};