import React, { lazy, Suspense } from "react" import "crowdsorcerer/dist/app.css" import withSimpleErrorBoundary from "../util/withSimpleErrorBoundary" const CrowdSorcerer = lazy(() => import("crowdsorcerer")) class CrowdSorcererWrapper extends React.Component { state = { render: false, } componentDidMount() { this.setState({ render: true }) } render() { if (!this.state.render) { return
Loading...
} const assignmentId = this.props.id const exercises = this.props.exercisecount const review = this.props.peerreview return (
Loading...
}> ) } } export default withSimpleErrorBoundary(CrowdSorcererWrapper)