Pass ag-grid data from child to parent
New to react from angular Receiving the error: I don't quite understand why div and what the error is talking about? I am trying to click on a row and pass the values from row to parent. In my top level parent component, I have a function that would set the value of the selected row and in the child, the selected row is pass to props. Parent: In my child, I use ag-grid using onRowClicked . The error is getting thrown in this.props.setActiveItem(event.data) You are passing down setActiveItem from parent to child as activeItem. So in child call it with the name you gave in when passing it down. Also, consider wrapping your components in an error boundary as the error mentioned. It helps. You can read about that here By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.