Passing/Accessing props in stateless child component
问题 I know you can pass all a react components props to it's child component like this: const ParentComponent = () => ( <div> <h1>Parent Component</h1> <ChildComponent {...this.props} /> </div> ) But how do you then retrieve those props if the child component is stateless? I know if it is a class component you can just access them as this.prop.whatever , but what do you pass as the argument into the stateless component? const ChildComponent = ({ *what goes here?* }) => ( <div> <h1>Child Component