anes039
KPCKevin Powell - Community
•Created by anes039 on 9/30/2024 in #front-end
css cards
this is my code
5 replies
KPCKevin Powell - Community
•Created by anes039 on 8/26/2024 in #front-end
React Redux with boolean values
??7
6 replies
KPCKevin Powell - Community
•Created by anes039 on 8/26/2024 in #front-end
React Redux with boolean values
because you dont have to do like prop drilling and so on
6 replies
KPCKevin Powell - Community
•Created by anes039 on 8/26/2024 in #front-end
React Redux with boolean values
cuz it is way easier i think
6 replies
KPCKevin Powell - Community
•Created by anes039 on 8/26/2024 in #front-end
React Redux with boolean values
is it possible to do this thing with redux
6 replies
KPCKevin Powell - Community
•Created by anes039 on 8/26/2024 in #front-end
React Redux with boolean values
When i log out to console it is still false
6 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
god bless
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
thanks for your effort bro btw
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
you know
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
it generated me a random one
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
each time i added
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
because it did not match
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
the problem was with the id
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
yes bro
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
and i set my function like this
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
addToCart: (state, action) => {
const itemInCart = state.cart.find((item) => item.id === action.payload.id)
if (itemInCart) { itemInCart.quantity++; } else { state.cart.push({...action.payload, quantity: 1 }); } },
if (itemInCart) { itemInCart.quantity++; } else { state.cart.push({...action.payload, quantity: 1 }); } },
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
so thats why i got like the same item twice
41 replies
KPCKevin Powell - Community
•Created by anes039 on 8/15/2024 in #front-end
Items issue
every time i added the item it used to give me a random Id
41 replies