React place children under an other node

Date: 2020-06-30
interface PageWrapperProps {
    pageHeaderTitle?: string;
    children: [ReactNode, ReactNode];
}

export class PageWrapper extends BaseComponent<PageWrapperProps> {
    render() {
        return (<div className={`page-wrapper ${this.props.pageHeaderTitle ? "with-header" : ""}`}>
            {this.props.pageHeaderTitle ? <PageTitle title={this.props.pageHeaderTitle}></PageTitle> : <></>}
            <PerfectScrollbar>
                {this.props.children[0]}
            </PerfectScrollbar>
            {this.props.children[1]}
        </div>
        );
    }
}
37710cookie-checkReact place children under an other node