Giter Club home page Giter Club logo

react-demo-maizuo's Introduction

React实战:模仿卖座电影

使用React.js全家桶仿制卖座电影

仓库:https://github.com/ChuckCZC/react-demo-maizuo

声明

该项目所用到的API均来自 卖座电影 ,采用chrome 开发者工具分析出来的,只是为了得到数据进行排版练习,完全出于学习用途,并无恶意,请卖座电影官方海涵。

参考资料

React.js文档 : http://reactjs.cn/react/docs/getting-started.html

react-router文档 : http://www.uprogrammer.cn/react-router-cn/index.html

Redux文档 : http://www.redux.org.cn/

轮播插件swiper : https://github.com/voronianski/react-swipe

数据请求axios : https://www.npmjs.com/package/axios

项目手脚架:https://github.com/SidKwok/react-webpack-boilerplate

项目结构

项目结构

ps:代码有关的一些知识点用注释写在相关的代码附近

界面预览

首页

首页

首页

首页

首页

ps:只是模仿了以上页面,这几个页面感觉已经包括了react的常用功能了,后面的页面则是跳去卖座电影的官网了;由于只是几个页面,故各个页面没有将相关的子项分离成组件,如果项目庞大,建议分离成组件形式,由于先写vue版本再写react版本,所以写起来比较快~

最后,如果该demo对你学习react.js有帮助,麻烦给个star,谢谢#####

Build

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

react-demo-maizuo's People

Contributors

chuckczc avatar

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

react-demo-maizuo's Issues

.babelrc error and more error

"stage-0",     这里多了一个逗号。
],

还有package.json里面devDependencies 和Dependencies 的react-dom 版本不一致。
babel-plugin-transform-decorators-legacy 没加入依赖

还有网页控制台报错home.js?a556:34 Uncaught (in promise) TypeError: Cannot read property 'length' of undefined
at Home.renderBanner (eval at (main.js:1715), :78:17)
at Home.render (eval at (main.js:1715), :279:28)
at eval (eval at (main.js:2120), :795:21)
at measureLifeCyclePerf (eval at (main.js:2120), :75:12)
at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (eval at (main.js:2120), :794:25)
at ReactCompositeComponentWrapper._renderValidatedComponent (eval at (main.js:2120), :821:32)
at ReactCompositeComponentWrapper._updateRenderedComponent (eval at (main.js:2120), :745:36)
at ReactCompositeComponentWrapper._performComponentUpdate (eval at (main.js:2120), :723:10)
at ReactCompositeComponentWrapper.updateComponent (eval at (main.js:2120), :644:12)
at ReactCompositeComponentWrapper.receiveComponent (eval at (main.js:2120), :546:10)

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.