0.0.2 • Published 3 years ago

cra-layout v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Small utility for adding layout in a declarative way

Usage

import React from 'react'
import { withLayout } from 'cra-layout'
import { DesktopLayout } from '../components'

const Example = () => (
    <div>
        <h1>Some example sentence<h1>
    </div>
);

export default withLayout(DesktopLayout, <Example />);