annqlm
V2EX  ›  React

react 的组件套用

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