示例#1
0
文件: index.js 项目: broskoski/ervell
module.exports = () => {
  const mountPoint = document.getElementById('apolloMount');

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

  mountWithApolloProvider(Component, APOLLO, mountPoint);
};
示例#2
0
文件: feed.js 项目: broskoski/ervell
document.addEventListener('DOMContentLoaded', () =>
  mountWithApolloProvider(withBrowserRouter(Routes), {}, document.getElementById('root')));