Git Product home page Git Product logo

react-mobx's Introduction

最近公司项目在使用mobx,网上找了一圈也没有个比较好的mobx+react的项目实践,经过一段时间的使用,略有心得,写了个小项目,仅供大家参考。

技术栈

  1. 脚手架:create-react-app
  2. 前端框架:react
  3. 组件库:antd
  4. 状态管理:mobx
  5. 路由: react-router

项目目录

my-app/
  README.md
  node_modules/
  package.json
  jsconfig.json
  .bablerc
  .gitigonre
  scripts/...
  config/...
  public/...
  src/
    page/...
    store/...
    App.js
    index.js
    router.js

主要说下src下面的目录构成部分:

  1. page 页面组件
  2. store mobx的状态管理数据
  3. router.js 路由配制
  4. App.js Provider 包装组件(透传store数据)
  5. index.js 入口文件

开发

$ npm install

$ npm start

概览

preview

preview

react-mobx's People

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

Forkers

thbgh

react-mobx's Issues

您好

我想配置一下跨域代理,需要怎么配置呢

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.