blob: 9efbfdd0cc1ae10f44ff869eb8593808f525e1ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from 'react';
import {render} from 'react-dom';
import App from "./app";
import './app/index.scss';
const renderMainSearch = () => {
render(<App/>, document.getElementById('searchBar'));
}
let renderApp = () => {
renderMainSearch();
document.removeEventListener('DOMContentLoaded', renderApp);
};
document.addEventListener('DOMContentLoaded', renderApp);
|