Is it mandatory to use built-in hooks inside a custom hook?
I am new to ReactJs, my understanding of custom hooks is that they are used for separating logic into a function. In many of the custom hook examples I have seen uses some built-in hook (mostly useState and useEffect). Is it mandatory to use built-in hooks ?
How to call multiple custom hooks fetching data depending on previous data inside a custom hook itself?
To get certain data, I need to call multiple custom hooks, all of which are making api requests to get some data, then after each call, I need to use gotten data to pass to the next custom hook to get the next data.
npm error code ENOENT npm error syscall spawn C:
Can someone help me with this error, i’m having a hard time for this. This error always appear and idk why.
react error when launch my app :You may need an additional loader to handle the result of these loaders
when i start my app , that`s error was happened : You may need an additional loader to handle the result of these loaders.
| variant: dense ? ‘body2’ : ‘body1’,
| className: classes.primary,
How do I stop an async function from closing my modal? [closed]
Closed 6 days ago.
How do I stop an async function from closing my modal? [closed]
Closed 6 days ago.
How do I stop an async function from closing my modal? [closed]
Closed 6 days ago.
im facing a issue in saving the Data in localstorage in Excalidraw api [closed]
Closed yesterday.
im facing a issue in saving the Data in localstorage in Excalidraw api [closed]
Closed yesterday.
How to handle global context change in React and reload components
I have a React application with a CompanyContext and CompanyProvider. This allows a user to change the current company in the UI (like Slack) and the current company ID will be available to all components in the app.