【问题标题】:How does browser parses Reactstrap components to html tags?浏览器如何将 Reactstrap 组件解析为 html 标签?
【发布时间】:2019-09-21 02:33:45
【问题描述】:

我们有一个 reactstrap 组件Modal,它显示为一个对话框。如果我们真的在 DOM 中检查这个元素,它只不过是一个类名为 modal-dialog.div,谁实际上将这个 Modal 转换为 div?浏览器?反应带?

【问题讨论】:

    标签: reactjs reactstrap


    【解决方案1】:

    Reactstrap 将Modal 组件定义为div。见源here

    当 React 渲染这个组件时,它会产生你在开发工具中看到的 div

    【讨论】:

      猜你喜欢
      • 2013-01-12
      • 1970-01-01
      • 1970-01-01
      • 2020-03-24
      • 1970-01-01
      • 2013-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多