mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use React.createElement
This commit is contained in:
parent
8a6335762d
commit
78c69e6711
@ -97,7 +97,7 @@ export const InternalRouter = withRouter((props) => {
|
|||||||
window.app.setLocation = props.history.setLocation
|
window.app.setLocation = props.history.setLocation
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return <React.Suspense fallback={props.staticRenders?.PageLoad ?? "Loading..."}>
|
return <React.Suspense fallback={props.staticRenders?.PageLoad ? React.createElement(props.staticRenders?.PageLoad) : "Loading..."}>
|
||||||
<Switch>
|
<Switch>
|
||||||
{routes.map(({ path, component: Component = React.Fragment }) => (
|
{routes.map(({ path, component: Component = React.Fragment }) => (
|
||||||
<Route
|
<Route
|
||||||
|
Loading…
x
Reference in New Issue
Block a user