Skip to content

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…

Mapping in map in json response

I need to parse json api response, with response.data equals: and I need to return one array[String] with all subcategories, ex [“web-development”, “backend-development” … “3D modeling”] All that I did is: and it returns Array of arrays with categories. Im sure, that …

How to properly use Modal in Fluent UI

I am new to React and Fluent UI, I loaded all my files from CDNs, when I tried execute the following code, the modal didn’t open. Please tell me what I am doing wrong here. I searched up examples but wasn’t able to find one. Here is the code: Thanks in advance Answer If you use isModalOpen = true/…

Cannot call Action within another Action

I am having trouble understanding this behaviour I have an action defined like this and whatever() is defined like this I expect whatever() to be executed, but it is not. Why is that? Answer Both onDone and whatever here are not “actions”, they are “action creators”. They are functions…