GithubHelp home page GithubHelp logo

react-ele's Introduction

使用 create-react-app 创建的一个简单 demo,接口用的饿了么移动端的接口,使用 fetch 请求数据

项目主要有四个组件

  • MainPage , 它有四个子组件,通过底部 footer 切换子组件,默认进入 Msite 组件,判断 localStorage 中有没有 address ,没有的话去 Address 组件选择地址再进入 Msite 组件
    • Msite , 主页
    • Discover , 发现页
    • Order , 订单页
    • User,用户页
  • Search 组件,搜索商品和店铺,通过 Msite 组件进入
  • Foods 组件,通过 Msite 的轮播图进入

本来想用 githu bpages 演示的,但是 build 后在 package.json 中的跨域设置失效,请求数据失败,所以使用 gif 图演示了

react-ele's People

Contributors

qkdname 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.