Yes, it's generally acceptable, and it's often the simplest way to give parameters to callback functions.
There are various situations in React when you might want to provide a function (like onClick) as a prop from a container to a child component, usually to allow the child to inform the parent of an event.
This occurs because setState() in React is an async operation, so if you need to conduct many activities at the same time, you can't rely on the state variable, which may not be updated quickly enough at times.
Very helpful course in learning ReactJS
a to z very good course must follow and get your dream job
very helpful course thank you so much
HTTP moudule ka code hee nhi hai .
Please provide Its most imp. thing in entire course.
The zip is empty
Ishwar Shankar Chavan
mam such a great hard work really it is ever best course for beginner to advance .......thanks mam
Nitish Kumar Sharma
What madam is telling is difficult to understand please update your faculty.
May I know where is the source code please. and yes I am very happy to learn with you.