UNPKG

@prabink/react-node-cli

Version:

React Node Application Generator & Helpers To Serve React Build, Push to github & Export industry level react project structure

24 lines (19 loc) 563 B
import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet-async'; import { forwardRef } from 'react'; // material import { Box } from '@mui/material'; // ---------------------------------------------------------------------- const PageComponent = forwardRef(({ children, title = '', ...other }, ref) => ( <Box ref={ref} {...other}> <Helmet> <title>{title}</title> </Helmet> {children} </Box> )); PageComponent.propTypes = { children: PropTypes.node.isRequired, title: PropTypes.string }; export default PageComponent;