Given a small hook defined as const useCount = ({ trigger }) => { const [count, setCount] = useState(1) const increment = () => setCount(count => c
**When i try at local route is working but why not working on product ? i get 404 not found error. ** const App = () => { return ( <>
I'm using treeview to display my hierarchical data. I have following array of objects: const data = [ { id: 1, hierarchyid: "/", level: 0, name: "Mhz" },
Hello friendly people of stackoverflow, I'm having a map function issue and I just can't put my finger on what the problem could be. Context is just for user da
I am currently in a coding bootcamp and the instructor told me that it is not best practice to pass the setters defined in my useState as props to children comp
I installed dotenv using npm install --save dotenv in my React web application. Whenever I use require('dotenv') this error comes up. Error: Can't resolve 'fs'
i have react program that need the data from other components. When the parent components send path data, an array will get all of the files name inside folder,
I am using socket.io for my project social network web, when user connect I join, but when I get message from socket.io by group chat, My component render messa
I have a fundamental question about reactive programming in react. As you know, a react component re-renders only if one of its props changes and does not aware
I am trying to store the result of my backend, which is a list of inventories, sent from my backend powered by Microsoft .Net 6 Web API. But I can't figure out
I'm trying to target an element in the the DOM that has already been returned, and rendered, by another component; I was hoping to use a getElementById() call,
I have a React Functional Component like this: export const MyParentComponent = (props: Props) => { const [myObjects, setMyObjects = React.useState< M
Most of the pages on my website are in Norwegian— Seo.defaultProps = { lang: `no`, ... } Some articles, however, are in English. I use some automatic
I have another fetch of "SpecificList in another component, but when posts excutes it dosent refetch it only refetches on rewindowfocus? What could the reason b
I'm making an app with React. Only in Chrome, the following error is output both on localhost and after building and deploying. it is error. I did not find the
i am using onKeyUp event for fire api without submitting the form and i fetched data in response successfully if Mobile number matched. But i don't understand h
I have a mapbox React.js component implemented with DeckGl I am trying to make my Pathlayer color changes on evenry mouse click (onClick), using onClick, getCol
I have this module to fetch data using the Spotify API: const Spotify = { getAccessToken() { ... }, searchTrack(searchTerm) { const accessToken = Spoti
I need to save page number, size per page and text filter for reuse. Suppose I'm at page 3 and text Filter is "submitted" and sizePerPage=50. Then I got to ano
I've configured tailwind.css to my react project and edit the react scripts according to "scripts": { "build:css": "postcss src/styles/index.css -o src/styl