import React , { FunctionComponent } from "react" ; import ReactDOM from "react-dom" ; import { createManaged } from "coral-framework/lib/bootstrap" ; import App from "./App" ; import Head from "./Head" ; import { initLocalState } from "./local" ; import localesData from "./locales" ; import "coral-ui/theme/admin.css" ; async function main ( ) { const ManagedCoralContextProvider = await createManaged ( { initLocalState , localesData , reporterFeedbackPrompt : true , bundle : "admin" , } ) ; const Index = ( ) => ( < ManagedCoralContextProvider > < Head /> < App / > < /ManagedCoralContextProvider>); ReactDOM . render ( < Index />, document.getElementById("app")); } void main ( ) ;