import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { App, AppContext, APP_READY, AppProvider } from '@edx/frontend-base'; import { NewRelicLoggingService } from '@edx/frontend-logging'; import './index.scss'; import SiteHeader from '../src/'; App.subscribe(APP_READY, () => { ReactDOM.render( {/* We can fake out authentication by including another provider here with the data we want */}
Logged out state
{/* We can fake out authentication by including another provider here with the data we want */}
Logged in state
, document.getElementById('root'), ); }); App.initialize({ messages: [], loggingService: NewRelicLoggingService });