Giter Site home page Giter Site logo

thapareactecom's Introduction

Welcome to Thapa Technical React Ecommerce Website Series

Follow the 3 Steps and you are good to go.

1: Clone the Project

2: simply run the command npm install - First to install all the packages

3: run the project using npm start


To get the source code guy's please check the Switch branches/tags and select the respective video branch for the source code ok..

Also I am creating a List of the video with the Link to the respective video code, you can checkout below ๐Ÿ‘‡


thapareactecom's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thapareactecom's Issues

Issue in Navlink Pathname

i #7: Home & About Page with Hero Section (with Props ๐Ÿ”ฅ)

        <NavLink to="#">
          <Button>show now</Button>
        </NavLink>

getting issue with the reduce() method in cart reducer

if (action.type === "CART_ITEM_PRICE_TOTAL") {
        let { total_item, total_price } = state.cart.reduce(
            (accum, curElem) => {
                let { price, amount } = curElem;

                accum.total_item += amount;
                accum.total_price += price * amount;

                return accum;
            },
            {
                total_item: 0,
                total_price: 0,
            }
        );
        return {
            ...state,
            total_item,
            total_price,
        };
    }

getting this error with the reduce() method in cart reducer

cartReducer.js:109 Uncaught TypeError: Cannot read properties of null (reading 'reduce')
at cartReducer (cartReducer.js:109:1)
at updateReducer (react-dom.development.js:16664:1)
at Object.useReducer (react-dom.development.js:17898:1)
at useReducer (react.development.js:1626:1)
at CartProvider (cartContext.js:24:1)
at renderWithHooks (react-dom.development.js:16305:1)
at updateFunctionComponent (react-dom.development.js:19588:1)
at beginWork (react-dom.development.js:21601:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)

getting issue with the reduce() method in cart reducer

if (action.type === "CART_ITEM_PRICE_TOTAL") {
let { total_item, total_price } = state.cart.reduce(
(accum, curElem) => {
let { price, amount } = curElem;

            accum.total_item += amount;
            accum.total_price += price * amount;

            return accum;
        },
        {
            total_item: 0,
            total_price: 0,
        }
    );
    return {
        ...state,
        total_item,
        total_price,
    };
}

webpack compiled with 2 errors

when i try to import singleproduct file in app.js it is showing multiple errors like:
ERROR in [eslint]
src/SingleProduct.js
Line 3: Parsing error: 'return' outside of function. (3:0)

webpack compiled with 2 errors
SyntaxError: /Users/tarunsara/reactecom/reactapple/src/SingleProduct.js: 'return' outside of function. (3:0)
1 | import styled from "styled-components";
2 |

3 | return ;
| ^
4 |
5 | const Wrapper = styled.section`
6 | .container {
ERROR in ./src/SingleProduct.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/tarunsara/reactecom/reactapple/src/SingleProduct.js: 'return' outside of function. (3:0)

issue in the search bar on products page in mobile browser.

search bar in products filter section is working perfectly in the PC broswer
but when i used it in mobile browser it is not working.
Although when i inspect it on PC browser and go in responsive mobile mode or any other fixed mode its working perfectly but when i use this website in actual smartphone it is simply not working.
How can we solve this problem.
This problem is again seen in the https://thapaecomstore.netlify.app/ this website also.
Has anyone found its solution.
image
here if you observe clearly i am getting 4 products but not getting the results in the mobile browser.

issue in CASE_FILTERS

case "CLEAR_FILTERS":
return {
...state,
filters: {
...state.filters,
text: "",
category: "all",
company: "all",
color: "all",
// maxPrice:0,
//price:state.filters.maxPrice,
// minPrice:state.filters.maxPrice,
},
};

//the input range stuck after using the above commented line

but this works
case "CLEAR_FILTERS":
return {
...state,
filters: {
...state.filters,
text: "",
category: "all",
company: "all",
color: "all",
price:state.filters.maxPrice,

			},
		};

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.