Coder Social home page Coder Social logo

react-component.github.io's Introduction

react-component.github.io's People

Contributors

yiminghe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-component.github.io's Issues

fix components lint

lint 修复

删除 node_modules,重新 npm install,运行 npm run lint, warning 可以通过在文件头部加入:

/* eslint react/no-multi-comp:0 */

待修复组件列表

  • tabs: @yiminghe
  • input-number/progress/slider/switch: @本杰
  • time-picker: @崖鹰
  • queue-anim/table/form-validation/notification: @偏右
  • pagination: @雨维
  • tree: @然则

Components Plan

引入 monorepo

好处

  • rc-tools 的更新可以统一推进,目前几个组件库依赖的 rc-tools 版本不一致,如果要给 rc-tools 加东西需要给几十个组件库升级一遍,耗时耗力容易遗漏;
  • issue 可以统一管理。
  • 方便集成测试,(比如 Menu 和 Select 需要一起测试)。

问题

react-component.github.io/table/examples/ isn't loading.

The Tables/Examples page from the rc-table docs is unresponsive.

Chrome console log:

(index):20 GET http://react-component.github.io/table/examples/runtime~main.411d3c3c7829aaabb366.bundle.js net::ERR_ABORTED 404 (Not Found)
(index):20 GET http://react-component.github.io/table/examples/runtime~main.411d3c3c7829aaabb366.bundle.js net::ERR_ABORTED 404 (Not Found)
(index):20 GET http://react-component.github.io/table/examples/runtime~main.411d3c3c7829aaabb366.bundle.js net::ERR_ABORTED 404 (Not Found)

Url in question: http://react-component.github.io/table/examples/

react组件里面如何动态配置dom

按照react思维,所有的元素都是虚拟dom树,一般考虑一个组件,首先会把组件分为不同层级的组件。

遇到一个问题,如果我需要开发一个组件,但是组件的一个子元素是需要可配置。比如

<MyComponent>
  <p class="preview">hello world</p>
</MyComponent>

上面MyComponent是我开发的,但是中间那个p是用户自定义的一段html代码。这中间的代码如果传递到我定义的react class中?难道只能用dangerouslySetInnerHTML

我觉得理想的方式,直接

React.render(<MyComponent><p>...</p></MyComponent>, el);

我希望p直接追加在MyComponent后面,不过实际中,我发现MyComponent渲染出来是没有p那么一段的。

简单demo可以看这个例子http://jsfiddle.net/69z2wepo/3678/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.