function init() {然后,在react组件/页面中,我可以这样导入它:import Frame from 'react-frame-componentreturn Page() {
// need to inject the styles and js to iframe (react-frame-component).
我正在用react.js制作一个应用程序,并使用react-frame-component来创建iframe。在iframe中,我为Modal (reactstrap)编写了代码。ReactDOM from "react-dom";import Frame from "react-frame-component
React from 'react';import Frame, { FrameContextConsumer } from 'react-frame-componentFrameContext } from 'react';import Frame, { FrameContextConsumer } from 'react-fra