Imagine situation: const [value, setValue] = useState(false); const setSomething = (val) => { setValue((prev) => { fn(); dispatch(action); // or an
C:\Users\user\Desktop\CarInventory>npm install firebase npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: 3d-reac
Here is my main js code and why combine all reducer cartredux\src\redux\reducers\main.js import {combineReducers} from "react-redux"; import { cartreducer } fr
Each child in a list should have a unique "key" prop. Screenshot
I define column index parameter in my arrow function but I can use in my useEffect causes is not define! What can I do? useEffect(() => { const resizeOb
const [photo,setPhot]=useState('') photo setPhoto(e.target.value)}/> const handleFormOnSubmit=e=>{ updateProfile({photoURL:photo}) const [photo,setPho
I try to make a scatter plot using React-ChartJS-2. The basic setting gives only the values of the x-value and the y-value of the point in the plot. Is there an
I have a form that is supposed to register every input (through useState) and constantly check if that is valid (through useEffect), but that
So i want to find current version of applications in React-native so, that i can compare with latest version and send update alert to users.
I have a component that maps over an array of components that have props passed into them, something along these lines: const Component = (prop0, prop1, prop2)
i'm using the following hook to handle "click away" feature to show/hide a dropdown: const useOutsideClick = (ref: NonNullable<RefObject<HTMLButtonElement
<Image.PreviewGroup> <Image width={200} src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" /> <Ima
I want to add Linking images feature to my React app that uses ' @ckeditor/ckeditor5-build-decoupled-document code: import React from 'react' import { CKEditor
How can I create a header for my react table based on the API response? for example the data I don't want to define columns manually for the table, so how can I
I've been following along the REDUX essentials guide and I'm at part 8, combining RTK Query with the createEntityAdapter. I'm using the guide to implement it in
I want to open a table tab in a new window to interact with the component separately. What's the best recommended method to do this functionality in React.js?
We have a reactjs application with google sso login and we introduced cookie bot into it. We added both scripts to index.html file as it was described in the gu
This function is called up after pressing the button. Whenever the page is refreshed and the button is pressed, it is empty, the second click returns an array w
I'm doing a small project using react, where I needed navbar, so I copied the navbar code from flowbite(that uses Tailwind CSS), I've changed all necessary thin
On my project I use: TailwindCSS + Emotion + Tailwind Macro. I just want to export TailwindCSS CSS rules to the currently generated styles.css file instead of