我曾尝试使用引荐https://trendmicro-frontend.github.io/react-modal/#modalbody来生成模态...但是安装了react modal后,我尝试使用上述站点中给出的相同代码运行我的代码。但是发生了一些错误,例如Uncaught ReferenceError:未定义FromGroup,Uncaught ReferenceError:未定义标签...我试图复制该站点上给出的第一个示例。我需要做什么来解决我的问题? 这是我的代码,
import Modal from '@trendmicro/react-modal';
import '@trendmicro/react-modal/dist/react-modal.css';
..........................
{flag &&
<Modal showOverlay={false}>
<Modal.Header>
<Modal.Title>
Modal title
</Modal.Title>
</Modal.Header>
<Modal.Body>
<FormGroup>
<Label>Email address</Label>
<Input
type="email"
placeholder="Email"
/>
</FormGroup>
<FormGroup>
<Label>Password</Label>
<Input
type="password"
placeholder="Password"
/>
</FormGroup>
</Modal.Body>
<Modal.Footer>
<Button>Cancel</Button>
<Button btnStyle="primary">Save</Button>
</Modal.Footer>
</Modal>
}