freiksenet / react-calendar

A modular toolkit to build calendar-related things in React
http://freiksenet.github.io/react-calendar/
MIT License
249 stars 46 forks source link

Warning: date is required in Month Check the render method of ... #6

Closed fson closed 8 years ago

fson commented 9 years ago

Because date is required in both propTypes and contextTypes, a warning is shown even if you pass it in as a prop. Example:

var DatePicker = React.createClass({
  render() {
    return <Month date={moment()} />
  }
});

Prints Warning: date is required in Month Check the render method of DatePicker. in the console.

philschatz commented 9 years ago

:+1: