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

Removed @jsx React.DOM pragma from files #17

Closed andru closed 9 years ago

andru commented 9 years ago

Since React 0.12.x the @jsx React.DOM pragma has been depreciated and this is causing Babel to error out when compiling.

Since react-calendar requires React ^0.12.1 as a peerDependency these should now be removed. This pull request handles that.

See: http://facebook.github.io/react/blog/2014/10/16/react-v0.12-rc1.html The @jsx Pragma is Gone! We have wanted to do this since before we even open sourced React. No more /* @jsx React.DOM /!. The React specific JSX transform assumes you have React in scope (which had to be true before anyway).

JSXTransformer and react-tools have both been updated to account for this.

Related issues in other projects: https://github.com/callemall/material-ui/issues/364 https://github.com/DynamicTyped/Griddle/issues/109

freiksenet commented 9 years ago

Sorry, I've missed your PR.

andru commented 9 years ago

No problem!