SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this.props.children to render whatever children the component contains:
this.props.children
const Wrap = ({ children }) => <div>{children}</div> export default () => <Wrap><h1>Hello word</h1></Wrap>