Code Monkey home page Code Monkey logo

a-docs's Introduction


welcome


about



Tell me and I forget; Show me and I remember. Involve me and I understand.

不闻不若闻之,闻之不若见之;见之不若知之,知之不若行之;学至于行而止矣。



👉 Follow me


Name Description Follow
Website Adhere to the original, persevere. Corlorful
Yuque Digital garden at yuque.com, write down some thoughts and conclusions. Yuque
Twitter Acquire fragmented knowledge. Twitter
Zhihu Knowledge is power. Zhihu
Bilibili One of my Media-Matrix. Bilibili


🐝 Bees


Name Description Detail
Reader-Bee 📕 Reading is the ladder of human progress. r.xiaoa.name
daily.dev ⛰️ A professional network for developers to learn, collaborate, and grow together. Archer's Dev Card


🚀 [WIP] Studio: [Code & Art]


code & art

a-docs's People

Contributors

qddegtya avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

a-docs's Issues

Rax vs React

React vs Rax 顶层API 对照表

✔️ 支持 ✖️ 不支持 ✔️(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 ✔️ ✖️

Rax特有的顶层API

名称 类别 React Rax
Rax.findComponentInstance Top-Level API ✖️ ✔️

findComponentInstance - 从Node上获取组件实例

React vs Rax 组件API 对照表

名称 类别 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 ✔️ ✖️

React vs Rax 组件Specs 对照表

注意,由于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 vs Rax 组件生命周期 对照表

名称 类别 React Rax
componentWillMount Component Lifecyle ✔️ ✔️
componentDidMount Component Lifecyle ✔️ ✔️
componentWillReceiveProps Component Lifecyle ✔️ ✔️
shouldComponentUpdate Component Lifecyle ✔️ ✔️
componentWillUpdate Component Lifecyle ✔️ ✔️
componentDidUpdate Component Lifecyle ✔️ ✔️
componentWillUnmount Component Lifecyle ✔️ ✔️

特性支持对照 Ref/Context/setNativeProps

名称 类别 React Rax
contextTypes 特性 ✔️ ✔️
getChildContext 特性 ✔️ ✔️
ref Rax跟React一样,支持ref ✔️ ✔️
setNativeProps 直接设置底层属性-直接突变,Rax中作为顶层API存在 RN ✔️

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.