Giter VIP home page Giter VIP logo

react-practice-daike's Introduction

Daike sidebar filter in React

Installation

npm install

Basic usage

Start server

npm run dev

Open localhost:8080 in your browser, and you will see the demo.

Run test

npm test

Design methodology

<Fiilter> 實現的功能很簡單,就是左欄的 item 點擊後會發送 APPLY_FILTER action (action 詳情請見 actions/index.js)。

以下幾點是實做上的細項

  1. api.js 在演示中我自行新增了兩個 member 一個是 整個團隊另一個是 自己,我希望 Filter 組件保持簡單,如果需要過濾整個團隊或是自己的 ticket,應該是發送 action 時加上特殊的 id,例如 wholeTeam 代表整個團隊。因此前端在接受到資料後,需要對接受到的資料做整理,相關套件可以參考 normalizr、以及這個討論。
  2. 測試方面我只測試有實際綁定事件的 <FilterItem>,以及宣染方面比較有變化的 <FilterGroup>

react-practice-daike's People

Contributors

nickhsu avatar

Watchers

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