Skip to content

Instantly share code, notes, and snippets.

@thattimc
Last active January 13, 2020 12:56
Show Gist options
  • Save thattimc/7e9370fab6cc5622223325d71ab1b5b4 to your computer and use it in GitHub Desktop.
Save thattimc/7e9370fab6cc5622223325d71ab1b5b4 to your computer and use it in GitHub Desktop.
/** @jsx jsx */
import { jsx } from '@emotion/core';
import { Box } from '@chakra-ui/core';
import PropTypes from 'prop-types';
import React from 'react';
function Template({ children, ...props }) {
return (
<React.Fragment>
<Box {...props}>{children}</Box>
</React.Fragment>
);
}
Template.defaultProps = {};
Template.propTypes = {
children: PropTypes.node.isRequired,
};
export default Template;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment