Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise(resolve => {
const eventEmitter = new EventEmitter();
const base = url.resolve(global.location.pathname, data.base);
Router.run(getRoutes(base), Router.HistoryLocation, (Handler, state) => {
const appData = { ...data, ...state, eventEmitter, base };
resolve(ReactDOM.render(, el));
});
});
}