annqlm
V2EX  ›  React

react 的组件套用

  •  1
     
  •   annqlm · Feb 4, 2016 · 3655 views
    This topic created in 3949 days ago, the information mentioned may be changed or developed.

    用开源的妹子 UI,react 框架[http://amazeui.org/react/components/grid],发现套用组件不太明白。
    比如用 bootstrap ,是把 bootstrap 的 html 代码嵌入到自己的 html 中;react 是用 js 写 html,再渲染到某个 dom 中。我要在妹子 UI 的组件套用组件,是怎么做的呢?

    robinlovemaggie
    robinlovemaggie
    Feb 4, 2016
    1
    react 的宗旨不是为了兼容各个大厂 UI 库,而是要革它们的命。所以你不可能看到官方推出 react-xxx UI 的库,有也只能是第三方来做。比如这个 https://github.com/react-bootstrap/react-bootstrap
    hronro
    hronro
    Feb 4, 2016
    2
    楼主的意思是想在自己的组件中使用 amazeui 的组件吗?直接用不就行了。有点没看懂楼主的意思
    dong3580
    dong3580
    Feb 4, 2016
    3
    通俗理解一下, react 是那段组件的 html ,就是你要在这段 html 中套用 bootstrap 样式,类似于拼接代码。
    ljbha007
    ljbha007
    Feb 4, 2016
    4
    这个表达能力我也是无语了
    答案: 直接用
    kenshinhu
    kenshinhu
    Feb 4, 2016
    5
    直接用,不用想这么多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1228 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 17:40 · PVG 01:40 · LAX 09:40 · JFK 12:40
    ♥ Do have faith in what you're doing.