Giter Club home page Giter Club logo

a-docs's Introduction

_______         ______   _______  _______  _______
(  ___  )       (  __  \ (  ___  )(  ____ \(  ____ \
| (   ) |       | (  \  )| (   ) || (    \/| (    \/
| (___) | _____ | |   ) || |   | || |      | (_____
|  ___  |(_____)| |   | || |   | || |      (_____  )
| (   ) |       | |   ) || |   | || |            ) |
| )   ( |       | (__/  )| (___) || (____/\/\____) |
|/     \|       (______/ (_______)(_______/\_______)

Intro

我阅读过的,即将读的,都放在这里,你可以在本项目的 issues 里看到这些文章。

Todos

  • initial a-docs
  • add logos
  • 新增一个浏览器插件,可以快速添加文章到这里
  • 新增一个 robot
  • 新增一个 Glitch 服务

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.