Reactjs – Error data type on typescript with next.js
I have a problem knowing the data type of the URL that I WILL res API from it, and I am using a custom hook to make it usable I am using Next.js with typescript this is a useFetch.js (custom…
I have a problem knowing the data type of the URL that I WILL res API from it, and I am using a custom hook to make it usable I am using Next.js with typescript this is a useFetch.js (custom…
I'm having trouble setting the taskID at my useState hook. once I click the button it returns me undefined but once I refresh the whole page it works perfectly. I was suspecting that the reason for this was the way…
I have an Overlay which is opened by clicking an icon button. In that Overlay, I'm using the useClickAway hook exported by the react-use library - useClickAway(overlayRef, hideOverlay); Basically, whenever a user clicks anywhere outside the overlay dom node, it…
new to JS here and working on a react project, I want to essentially have the button's visibility attribute which is set to false to change to true when a checkbox is checked, here is my code and I believe…
The navbar menu component won't close when the option from the menu was selected. The menu successfully opens and closes within the menu icon. I tried to to use onPress() but it doesn't seem to help a lot "use client"…
As I wrote above, I can't print the data recovered from the fetch, I've been on this for some time without any results. I'm new to React and learning how to use hooks. The error I'm getting is: Cannot read…
I'm in a situation where I want to dispatch an event in Redux. I'm noticing that defining const in Javascript is a little bit confusing. When I'm trying to add a parameter directly to the useAppDispatch function, the linter marks…
My goal is to control the user's data from the login page via the fakeAPI and pass it to the movies page, but after passing the user information, these errors appear before a blank page comes up. /* eslint-disable no-unused-vars…
CodeSandbox Repo I would like to listen to keyDown events, specifically, the key S so users can easily save a randomly generated employee conveniently instead of clicking the Save Employee button multiple times. In JavaScript, I would add the event…
I need to create a search bar in React that would show suggestions for a specific word. For example If I type t it would show 3 suggestions and the suggestions and whenever i remove âtâ the suggestions will vanish.…