Javascript – Pass newly defined props to a (functional) component passed as props
Let's say I have a parent component like the following: <ParentComponent contentComponent={ <GenericContent content={<FormContent title="Content Title" formComponent={<ChildComponent />} />} /> } /> Now, in my FormContent component, I would like to pass props to my formComponent which in this example…