import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { initialize, APP_READY } from '@edx/frontend-platform/init'; import { getConfig } from '@edx/frontend-platform/config'; import { AppContext, AppProvider } from '@edx/frontend-platform/react'; import { subscribe } from '@edx/frontend-platform/pubSub'; import './index.scss'; import Header from '../src/'; 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'), ); }); initialize({ messages: [] });