预渲染 material-ui 组件
作者: sternj创建于 2021年12月23日更新于 2023年9月25日
我一直在尝试对`mui`(以前称为material-ui)组件进行服务器端渲染,并且遇到了与#193类似的问题。我遇到的具体错误是 ActionView::Template::Error (Encountered error "#<ExecJS::ProgramError: Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.>" when prerendering MaterialComponentList with {}
内容来源: reactjs/react-rails