import React, { Component } from 'react';
import { connect } from 'react-redux'

import NavBar from './NavBar';

class Layout extends Component {
    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div>
                <NavBar />
                {this.props.children}
            </div>
        )
    }
}

export default connect()(Layout);
import React, { Component } from 'react';

import NavBar from './NavBar';

export default class Layout extends Component {
    constructor(props) {
        super(props)
    }

    render() {
        return (
            <div>
                <NavBar />
                {this.props.children}
            </div>
        )
    }
}
Remove connect and export component instead
Remove connect and export component instead
