import ReactDOM from 'react-dom' ; import React from 'react' ; import history from 'teleport/services/history' ; import Teleport from './Teleport' ; import TeleportContext from './teleportContext' ; import cfg from './config' ; cfg . init ( window [ 'GRV_CONFIG' ] ) ; history . init ( ) ; const teleportContext = new TeleportContext ( ) ; ReactDOM . render ( < Teleport history = { history . original ( ) } ctx = { teleportContext } / > , document . getElementById ( 'app' ) ) ;