components#MainErrorBoundary JavaScript Examples

The following examples show how to use components#MainErrorBoundary. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index_common.jsx    From apps with GNU Affero General Public License v3.0 6 votes vote down vote up
render = (settings) => {
    // Set the lang attribute on <html> for accessibility
    document.documentElement.setAttribute('lang', settings.lang());
    settings.get('router').init(settings.get('routes'));
    ReactDOM.render(
        <Settings settings={settings}>
            <Router router={settings.get('router')}>
                <MainErrorBoundary>
                    <Store store={settings.get('store')}>
                        <ExternalSettings>
                            <App menu={settings.get('menu')} />
                        </ExternalSettings>
                    </Store>
                </MainErrorBoundary>
            </Router>
        </Settings>,
        appElement
    );
}