score:1
Accepted answer
this is one issue, but there may be more :)
in this code:
updatecommenttext={()=>this.updatecomment}
your arrow function returns a function reference, but does not call the function when updatecommenttext
is invoked.
try this instead:
updatecommenttext={(value, index)=>this.updatecomment(value, index)}
btw, you have a similar issue here:
deletefromboard={()=>this.removecomment}
Source: stackoverflow.com
Related Query
- TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined raised when starting react app
- Trying to deploy my React app with gh-pages but got this error message : The "file" argument must be of type string. Received type undefined
- If destructure preventDefault - with babel in react - this is undefined
- TypeError: this is undefined - React JS, Javascript
- React this is undefined
- React setState inside of a function this is undefined
- TypeError : React object is undefined on createElement
- why react props are passed undefined to the child component?
- React Router: TypeError Cannot read properties of undefined (reading 'originalPositionFor')
- react props undefined inside the constructor and exist inside the render
- Using craco in new react project - what would cause this error ? (UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_VALUE]: ...)
- React props is undefined
- Making React yield error instead of warning for undefined props descriped as required in PropTypes
- React TypeError: Cannot read property 'map' of undefined on passing props
- React this is undefined when using setState
- react cannot set property of props of undefined
- React Ant modal props of undefined
- Props are undefined in React
- Why is there a semi-colon in the object structure for expected props in this typescript react component?
- Debugger inside React Context API Consumer block - this is undefined
- Custom props is undefined in React router-4
- react redux props undefined on event listener when using mapDispatchToProps
- why is this happening? : TypeError: Cannot read property 'username' of undefined in REACT
- React TypeError undefined
- React Redux - props are undefined while rendering from Immutable
- React props show up as undefined at first
- The this keyword is undefined in React base class
- Next props returns undefined React + Redux
- React - this is undefined when binding function to component
- Props are undefined in react when passing through <Route/>
More Query from same tag
- js map function index does not increment
- How to handle Meteor Data that requires state from child component?
- Convert react styles into CSS
- React useSelector and getState returning different values in useEffect
- Correct/best way to use a third-party lib in React?
- Conditional Rendering on Server Side
- React Passing Data to Components with JSX vs Native Javascript
- Webpack, React-router and React from CDN
- React.js throwing a promise from within render
- React can't read array in array?
- How to add styled components as properties of an object literal while using Typescript?
- How to use react-router Link to access props.location in React typescript?
- flatten array of object with map (or loop)
- React Hook "useStyles" is called in function which is neither a React function component or a custom React Hook function
- JavaScript object function in react component class
- Too many re-renders, trying to change an svg in React, how to fix this
- how to populate options for a react select by fetching values from an api to be visible when you click on the select box?
- Conditional rendering does not wait for axios data fetch
- Whats the difference between ForwardRefExoticComponent and ForwardRefRenderFunction in react?
- React PropTypes: Require array to have at least one element
- Textarea add div for each space between each word
- React Context Component Rendering
- Am not able to iterate through the data that I am getting. Tried forEach.., for..of and map()
- TypeError: Cannot read property 'prototype' of undefined in jest test
- Get data in component tree using RTK Query
- How do I set multipart in axios with react?
- passing text box value to another React page in different page whereas shows in same page
- useEffect hook doesn't rerender when state is updated
- How This React Hook i.e useEffect is re-rendering even if the second argument being passed is an empty array
- MapStateToProps is giving me undefined error