here is my code
const Parent = (props) => <div> {props.children} </div>
it works:
<Parent> <a href="/google">Click here </a> </Parent>
This doesn't work
<Parent> <Abutton /> </Parent>
const Abutton = (props) => <a href="/google">Click here </a>
This is the issue
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components)
/for<Abutton />Abuttonis missing the/for the self-closing tag.