I am trying to select li and click/check on span which is checkbox but, can’t do that. Here, following I tried. Here, in above code I want to select li where “abc account” and once found want to click on span which have class tree-checkbox. So, I tried. But, it says there are multiple elements found. above code find the
Tag: reactjs
I have a problem with my provider to render different navigator stacks
I am implementing a provider which helps me to have the state of my user in different views, the main function of this provider is to render different one or the other stack navigator depending on whether the variable is full or empty, this in order to be able to generate two groups of screens depending on whether the user
Pulling and displaying API data to tailwind cards
could someone help on how to get all data from this console log? I am trying to display all the details in individual tailwind cards but not sure how to get the data. Thank you for your time. It works and I get the results below in console. when I tried console.log (response.data.0.pdf) for example, it gives an error “Parsing
Is adding a click/keydown listener to every cell in a React datagrid with potentially thousands of cells a performance problem?
Back in the day, several years before React, I learned to wire events to tables by attaching the listener to the <tbody> and read the true source of the event form the event target. In that way, we have one listener for the entire table, instead of potentially hundreds. I used to have a test that would should have much
Why does the sender message only appear when the recipient sends a message? (socketio) (nodejs) (reactjs)
I am developing a realtime chat in nodejs and react and socket io. In theory the chat is working, but the problem is that the sender’s message only appears on the screen when the recipient sends a message too. ex : I have browser 1 and browser 2. Every time browser 1 sends messages, these messages appear on its screen,
unable to use MaterialUI Datepicker,Dayjs with useFormik and Yup
I am using Material UI Date picker with day js,but the issue that arising again and again is,’when I select the date on calender,1st time it updates in textfield and then it is not working.And also having problem in Yup like when touched 1st time it gives error means works perfectly but when removing the date from text field and
React Hool re-render loop test Condition on state
I want to update and re-render for loop test condition on hook state update. After I update state hook the state is rerendered but I want to the loop to be rerendered too. I make a form. The length of the form depends on what number I enter on input. Here is what I tried: Answer There is no need
ReactJS frontend suddenly cannot resolve many of it’s node modules
I have been working on this application for several weeks on and off. I followed the same setup process as I have for all of my past projects, installed all modules using npm insall and initialised the package.json file. Everything was working perfectly until today when I tried running the app and got a long error indicating that app was
Uncaught TypeError: Cannot read properties of Undefined (reading ‘getTotalLength’)
I’m trying to animate the SVG with GSAP. But the console.log says “Uncaught TypeError: Cannot read properties of undefined (reading ‘get total length’)”. It reacts project and this is the code I used inside of “useEffect”. Can anyone tell me what’s wrong with my code? I try to search on google but most of the answers were about “null” This
React setState of an object with count
I have an array of integers from 0 to 6 as input I need to return an object with the count of each of those numbers but I can’t do the function for the set of values I am expecting this Can you help me? Thank you very much Answer You can use reduce()