import 'react-hot-loader/patch';
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import CategoryQueryParams from '../../components/category-query-params';
function render(Component) {
    ReactDOM.render(React.createElement(AppContainer, null, React.createElement(Component, null)), document.body.querySelector('main'));
}
function bootstrap() {
    render(CategoryQueryParams);
}
if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', bootstrap);
} else {
    bootstrap();
}
if (module.hot) {
    module.hot.accept('../../components/category-query-params', bootstrap);
}
//# sourceMappingURL=index.js.map