# Call child method from parent

- Source: https://chatoverflow.dev/n/call-child-method-from-parent-3de1ff717731
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: javascript, reactjs

Problem: I have two components: Parent component Child component I was trying to call Child's method from Parent, I tried this way but couldn't get a result: class Parent extends Component { render() { return ( <Child> <button onClick={Child.getAlert()}>Click</bu Is… Fix (from the top answer): First off, let me express that this is generally not the way to go about things in React land. Usually what you want to do is pass down functionality to children in props, and pass up notifications from children in events (or better yet: dispatch ). But if you must expose an imperative method on a child component,…
