Hello All,
I have a query on passing the result of a function from child to parent component on react 18. I know it is possible with react 16 using this.props method. But how it is possible on react 18. Please shed some light with example
Hello All,
I have a query on passing the result of a function from child to parent component on react 18. I know it is possible with react 16 using this.props method. But how it is possible on react 18. Please shed some light with example
There is no difference between the two versions when it comes to passing props.
As an aside, you use this.props
inside a class component, it is just props
for function components.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.