I have a simple react component....
const TestTemplate = ()=> (
<h1>Hello World</h1>
)
I have been told this isn't a real component because it would need to accept render props but I am not using them. According to the docs
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render logic.
The with here is key to me it means a component may or may not have a render prop. Is this true or am I wrong? Does it need to be this to be valid?
const TestTemplate => (props)=>(
<h1>Hello World</h1>
)