2018-03-29 19:10:27 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
|
|
|
// require a root component here. This will be treated as the root of a webpack package
|
2018-05-21 20:03:46 +00:00
|
|
|
import Root from "../src/components/common/Root"
|
2018-06-20 19:22:28 +00:00
|
|
|
import <%=file_name.camelize %> from "../src/components/<%= file_name.underscore%>/<%= file_name.camelize%>"
|
2018-05-21 20:03:46 +00:00
|
|
|
|
|
|
|
import * as ReactDOM from 'react-dom'
|
|
|
|
import * as React from 'react'
|
|
|
|
|
|
|
|
function LoadReactPage(element:HTMLElement) {
|
2018-06-20 19:22:28 +00:00
|
|
|
ReactDOM.render(<Root><<%=file_name.camelize %>/></Root>, element)
|
2018-05-21 20:03:46 +00:00
|
|
|
}
|
|
|
|
|
2018-03-29 19:10:27 +00:00
|
|
|
|
2018-05-21 20:03:46 +00:00
|
|
|
(window as any).LoadReactPage = LoadReactPage
|