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
Thakyou LearnVern for providing a amazing course.
Please update this course some topics are deprecated.
Superb Course Thanks for sharing
Learnvern All Courses are Great Thanks To Provide Best Content.
Me Aapka Life Time Tak Abhari Rahunga
resources me jake download ki file but file open krne pr usme kuch hi aahra
resourse link is not working
very good course. Content Delivery of Trainer is very very awesome. I suggest everyone who want to learn react I prefer learn vern
Share a personalized message with your friends.