houdini/lib/generators/react/packroot/templates/page.ts.erb

14 lines
497 B
Text
Raw Normal View History

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
import Root from "../src/components/common/Root"
import RegistrationPage from "../src/components/<%= file_name.underscore%>/<%= file_name.underscore%>"
import * as ReactDOM from 'react-dom'
import * as React from 'react'
function LoadReactPage(element:HTMLElement) {
ReactDOM.render(<Root><RegistrationPage/></Root>, element)
}
2018-03-29 19:10:27 +00:00
(window as any).LoadReactPage = LoadReactPage