text: import React, { Component, PropTypes } from 'react'
  import { connect } from './react-redux'
  
  class Header extends Component {
    static propTypes = {
      themeColor: PropTypes.string
    }
  
    render () {
      return (
        <h1 style={{ color: this.props.themeColor }}>React.js 小书</h1>
      )
    }
  }
  
  const mapStateToProps = (state) => {
    return {
      themeColor: state.themeColor
    }
  }
  
  export default connect(mapStateToProps)(Header)