Dev_Maruti
KPCKevin Powell - Community
•Created by Dev_Maruti on 12/24/2022 in #front-end
useSelector() in Redux not rendering new value ❓
I am learning redux , so made a demo webApp and in that I am incrementing and decrementing the value by 1 on button click .
The problem is useSelector() hook in redux get fired once when the component is mounted but after that it doesn't re-render the changed value ..
Here is the code :->
Reducer :
and the main File :
11 replies
KPCKevin Powell - Community
•Created by Dev_Maruti on 11/27/2022 in #front-end
Tailwind CSS with Javascript
Hey Guys how can I use Tailwind css in js
like :
TeastRef.current.style.color = text-white
Or something similar ❓7 replies