Accessing properties of a react component from the parent
问题 I want to bundle some data together with a component. Here is an example of a SFC that has a property called name. I do not want to use the property name with the component named MyFormTab . Instead I would like to access this property from the parent component and assign it to be displayed within the parent. const MyFormTab = (props) => { const name = props.name return ( <> <div className='flex-center-col'> <input type='email'></input> <input type='text'></input> </div> </> ) } I would then