Skip to content

Tag: redux

Tracking redux state

I faced a problem when using redux. I have two arrays with objects in it, initially they are empty. One of these arrays contains objects that are marked as ‘favorite’ – by user. My reducer for adding item: I have this ‘toggle’ type for the same button if user decides to add and t…

handling mutliple inputs using redux

I have react hooks section in which user can edit input fields, there are hundreds of inputs that is why I need to use redux (newbie to redux though), Live demo on codesandbox: demo so far I have this and here is setting js where I have input fields Expected results: Just when the user types in inputs eg firs…

Redux createAsyncThunk vs useEffect hook

I’m familiar with react hooks, and i find it really easy to work with useEffect, thunk is very difficult to deal with, can i just use useEffect & axios and just dispatch the result to the store without using createAsyncThunk? is there any major performance benefit to use it over useEffect? createAsy…