Git Product home page Git Product logo

mobx-share's Introduction

mobx-share

mobx-share 一个关于mobx的研究和分享演示, 在线访问 https://ckinmind.github.io/mobx-share

技术栈

  • React
  • Mobx
  • d3.js
  • antd

项目说明

  • 本项目是关于mobx的研究, 以ppt的形式展示mobx的各个api以及会遇到的问题
  • 项目中的markdown使用的是 prismjsreact-markdown

版本更新

  • [v1.0]: 初始版本,详细更新查看 issue 2

如何开始

> git clone https://github.com/ckinmind/mobx-share.git
> cd mobx-share
> npm install
> npm start

内容说明

- API
  - mobx
    - @observable
    - @action
    - autorun / when / reaction
    - @computed
    - intercept & observe
    - 工具API: extendObservable, toJS, isObservable
  - mobx-react
    - @observer
    - Observer
    - Provider / inject
    - componentWillReact
    - PropTypes

- Observable类型
  - object
    - extendObservable
  - array
    - clear/replace/remove方法
    - slice/ toJS方法
    - arrays更新触发
  - maps
    - 两种定义的差别
    - 和ES6map的区别

- 问题
  - 1. 关于清理autorun
  - 2. 关于触发视图更新的一种方案
  - 3. 关于store的传递 / 单例模式
  - 4. 关于细粒度拆分
  - 5. 关于跨组件触发更新的问题
  - 6. 在async/await中使用runInAction

mobx-share's People

Contributors

ckinmind avatar

Watchers

韩荣礼 avatar

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.