here is my code scenario I am using components in another component like below. I want to pass a prop to EditableCell which is a component defined in another file. when I do following it gives me error I am not sure how do I pass props. Please help. Answer You need to wrap the component in a function: