镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
darcy521Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

BestSell Shopping Website
Hooks are JavaScript functions, but they impose two additional rules:

Only call Hooks at the top level. Don't call Hooks inside loops, conditions, or nested functions.
Only call Hooks from React function components. Don't call Hooks from regular JavaScript functions. 
1.Build the home page:
    a.header and footer:
        i.header - BestSell title on the left, suitable padding left;
                   cart icon and login link on the right, icon on the left of the login, set up appropriate gap between them;
                   appropriate background for the header.
        ii. footer - text "All right is reserved" on the center of the footer,
                     appropriate background for the footer.
    b.number of products, filter, and dividing line
        i.number of products - count the number of products then present on the
                               left. 
        ii.filter - two drop-down lists used for filtering products are under
                   the header but on the top of dividing line.    
        iii.dividing line - add <hr> under the filter
    c.product
        i. present a list of product on the body with appropriate gap between 
           each product;
           put product name and price at the bottom of each product


Add redux:
    1. what is redux(diagram)
    2. npm install redux
    3. create types
    4. types.js
    5. define FETCH_PRODUCTS
    6. actions/productActions.js
    7. declare fetchProducts
    8. create reducers
    9. reducers/productReducers.js
    10. define case FETCH_PRODUCTS
    11. create store.js
    
    

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages