content: 'use strict';
  
  import React from 'react';
  import { Component } from 'react';
  import { connectDatabase, disconnectDatabase } from '../actions/index';
  import ContactEntryForm from '../containers/contact_entry_form';
  import ContactsList from '../containers/contacts_list'
  
  
  export default class App extends Component {
    
  	constructor (props) {
  		super(props);
  	}
  
  	componentWillMount () {
  		connectDatabase();
  	}
  
  	componentWillUnmount () {
  		disconnectDatabase();
  	}
  
  	render() {
  		return (
  			<div id="ContactsApp"> 
  				<h1>React Contacts</h1>
  				<ContactEntryForm />
  				<ContactsList contacts={[{}]}/>
  			</div>
  		);
  	}
  }
  