Example #1
0
module.exports = () => {
  const mountPoint = document.getElementById('apolloMount');

  const Component = {
    UNAUTHORIZED: TransferChannelAccessDeniedPage,
    NOT_FOUND: TransferChannelNotFoundPage,
    OK: Routes,
  }[STATUS_CODE];

  mountWithApolloProvider(Component, APOLLO, mountPoint);
};
Example #2
0
document.addEventListener('DOMContentLoaded', () =>
  mountWithApolloProvider(withBrowserRouter(Routes), {}, document.getElementById('root')));