Skip to content

Tag: reactjs

Issue with component array filter

I want to create multiple components and delete them by pressing on button click. I created the components. But i can’t delete it. I wanted to give unique id to the Card component. But when i click one of cards’ buttons,all of cards are gone. I displayed the component array like this: Answer From …

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…

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/…