'how to pass props to return statement in react js

how to store the repeated code of a return statement in another component and use it as a props, if in return statement their are some functions called on button click or onChange event



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source