import React from 'react'

const Header = (props) => {
  return (
    <div>
      <p onClick={() => { props.actions.prevDate() }}>prev</p>
      <h2>
        {props.store.date}
        <button onClick={() => { props.actions.gotoToday() }}>today</button>
      </h2>
      <p onClick={() => { props.actions.nextDate() }}>next</p>
    </div>
  )
}

export default Header

import React from 'react'

const Header = (props) => {
  return (
    <div>
      <button onClick={() => { props.actions.prevDate() }}>prev</button>
      <h2>
        {props.store.date}
        <button onClick={() => { props.actions.gotoToday() }}>today</button>
      </h2>
      <button onClick={() => { props.actions.nextDate() }}>next</button>
    </div>
  )
}

export default Header

Change html tag from p to tag
Change html tag from p to tag
