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> ); } }
377100cookie-checkReact place children under an other node