github.com/argoproj/argo-cd@v1.8.7/ui/src/app/index.tsx (about) 1 import * as React from 'react'; 2 import * as ReactDOM from 'react-dom'; 3 import {App} from './app'; 4 5 ReactDOM.render(<App />, document.getElementById('app')); 6 7 const mdl = module as any; 8 if (mdl.hot) { 9 mdl.hot.accept('./app.tsx', () => { 10 const UpdatedApp = require('./app.tsx').App; 11 ReactDOM.render(<UpdatedApp />, document.getElementById('app')); 12 }); 13 }