-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
import React from 'react';
class AdminPageLoader extends React.PureComponent {
constructor(props) {
super(props);
this.state = { AdminPage: null, }
}
componentDidMount() {
import('./AdminPage').then(module => {
this.setState({ AdminPage: module.default });
});
}
render() {
const { AdminPage } = this.state;
return AdminPage ? <AdminPage {...this.props} /> : <div>Loading...</div>;
}}
export default AdminPageLoader;
Metadata
Metadata
Assignees
Labels
No labels