Warning: Failed prop type: Invalid prop `children` supplied to `Button`.
in
Button (created by App)
in
App
How can I resolve this warning? It seems to dislike anything other than a text node.
class SimpleThing extends React.PureComponent {
render() {
return
<span>Thing</span>;
}
}
class App extends React.Component {
render(){
return
(
<div class=
"example-wrapper"
>
<div className=
"example-col"
>
<p>Button</p>
<Button><SimpleThing /></Button>
</div>
</div>
)
}
}