import React from 'react'

import 'reset.css/reset.css'
import s from 'styles/_template.module.css'

export default function Template (props) {
    const { children } = props

    return (
        <div className={s.root}>
            {children}
        </div>
    )
}

import React, { Component, PropTypes } from 'react'

import 'reset.css/reset.css'
import s from 'styles/_template.module.css'

export default class DefaultLayout extends Component {
    render() {
        const { location, children } = this.props

        return (
            <div className={s.root}>
                {children}
            </div>
        )
    }
}

Make DefaultLayout extend React.Component