qddegtya / a-docs Goto Github PK
View Code? Open in Web Editor NEW:book: my favs
License: MIT License
:book: my favs
License: MIT License
✔️ 支持 ✖️ 不支持 ✔️(Noop) 仅Compat,未真正实现
名称 | 类别 | React | Rax |
---|---|---|---|
(React/Rax).Component | class | ✔️ | ✔️ |
(React/Rax).createClass | Top-Level API | ✔️ | ✖️ |
(React/Rax).createElement | Top-Level API | ✔️ | ✔️ |
(React/Rax).cloneElement | Top-Level API | ✔️ | ✔️ |
(React/Rax).createFactory | Top-Level API | ✔️ | ✔️ |
(React/Rax).isValidElement | Top-Level API | ✔️ | ✔️ |
(React/Rax).DOM | convenience wrappers(Top-Level API) | ✔️ | ✖️ |
(React/Rax).PropTypes | validate props(Top-Level API) | ✔️ | ✔️(Noop) |
(React/Rax).Children | Top-Level API | ✔️ | ✖️ |
(ReactDom/Rax).render | Top-Level API | ✔️ | ✔️ |
(ReactDom/Rax).unmountComponentAtNode | Top-Level API | ✔️ | ✔️ |
(ReactDom/Rax).findDOMNode | Top-Level API | ✔️ | ✔️ |
(ReactDOMServer/Rax).renderToString | Top-Level API | ✔️ | ✔️ |
(ReactDOMServer/Rax).renderToStaticMarkup | Top-Level API | ✔️ | ✖️ |
名称 | 类别 | React | Rax |
---|---|---|---|
Rax.findComponentInstance | Top-Level API | ✖️ | ✔️ |
findComponentInstance - 从Node上获取组件实例
名称 | 类别 | React | Rax |
---|---|---|---|
Instance of (React.Component/Rax.Component).setState | Component API | ✔️ | ✔️ |
Instance of (React.Component/Rax.Component).replaceState | Component API | ✔️ | ✖️ |
Instance of (React.Component/Rax.Component).forceUpdate | Component API | ✔️ | ✔️ |
Instance of (React.Component/Rax.Component).isMounted | Component API | ✔️ | ✖️ |
注意,由于Rax本身只支持ES6 Class Component,所以,这里只对比React的ES6 Class Component部分
名称 | 类别 | React | Rax |
---|---|---|---|
render | Component Specs | ✔️ | ✔️ |
state | Component Specs | ✔️ | ✔️ |
defaultProps | Component Specs | ✔️ | ✔️ |
propTypes | Component Specs | ✔️ | ✔️ |
displayName | Component Specs | ✔️ | ✔️ |
名称 | 类别 | React | Rax |
---|---|---|---|
componentWillMount | Component Lifecyle | ✔️ | ✔️ |
componentDidMount | Component Lifecyle | ✔️ | ✔️ |
componentWillReceiveProps | Component Lifecyle | ✔️ | ✔️ |
shouldComponentUpdate | Component Lifecyle | ✔️ | ✔️ |
componentWillUpdate | Component Lifecyle | ✔️ | ✔️ |
componentDidUpdate | Component Lifecyle | ✔️ | ✔️ |
componentWillUnmount | Component Lifecyle | ✔️ | ✔️ |
名称 | 类别 | React | Rax |
---|---|---|---|
contextTypes | 特性 | ✔️ | ✔️ |
getChildContext | 特性 | ✔️ | ✔️ |
ref | Rax跟React一样,支持ref | ✔️ | ✔️ |
setNativeProps | 直接设置底层属性-直接突变,Rax中作为顶层API存在 | RN | ✔️ |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.