houdini/lib/generators/react/packroot/templates/page.tsx.erb
2018-06-20 14:22:28 -05:00

14 lines
No EOL
511 B
Text

// License: LGPL-3.0-or-later
// require a root component here. This will be treated as the root of a webpack package
import Root from "../src/components/common/Root"
import <%=file_name.camelize %> from "../src/components/<%= file_name.underscore%>/<%= file_name.camelize%>"
import * as ReactDOM from 'react-dom'
import * as React from 'react'
function LoadReactPage(element:HTMLElement) {
ReactDOM.render(<Root><<%=file_name.camelize %>/></Root>, element)
}
(window as any).LoadReactPage = LoadReactPage