Coder Social home page Coder Social logo

react-h5's Introduction

react + react-router + webpack + ES6/7 + fetch + styledComponents + flex + eslint

项目运行

注意:由于涉及大量的 ES6/7 等新属性,nodejs 建议高版本 我使用的

node -v v8.1.2 npm -v 5.0.4 yarn -v 0.27.5 由于新版本的npm不太稳定,就用了yarn做下载工具,用起来还不错


git clone https://github.com/wuchaoya/react-web.git  

cd react-web

npm install 或者 yarn

npm start 或者 yarn start

npm run build 或者 yarn run build

其他

在游戏详情 游戏图片滑动时候 chrome 监听touch类事件报错

Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/...

event.cancelable 浏览器默认行为是否可以被禁用 event.defaultPrevented 浏览器默认行为是否已经被禁用 好像mdn上的event.preventDefault()方法还没更新到最新

修改了 react-dom/lib/SyntheticEvent.js 113行左右

if (event.preventDefault) {
      if (event.cancelable) {
        // 判断默认行为是否已经被禁用
        if (!event.defaultPrevented) {
          event.preventDefault();
        }
      }
}

修改 react-html5video/dist/styles.css 320行

 border-radius: 10px

修改为

 border-radius:30px

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.