import React from "react";
import ReactDOM from "react-dom";
import "@grapecity/activereports/styles/ar-js-ui.css";
import "@grapecity/activereports/styles/ar-js-designer.css";
import { Designer as ReportDesigner } from "@grapecity/activereports/reportdesigner";
import '@grapecity/activereports-localization-zh';
const initDesigner = (designerHostSelector) => {
new ReportDesigner(designerHostSelector,{language:"zh"});
};
function App() {
React.useEffect(() => initDesigner("#designer-host"), []);
return (
<div id="designer-host">
</div>
);
}
ReactDOM.render(<App />, document.getElementById("root"));
报错
|