codingfishman / react-scroll-pagination

MIT License
7 stars 6 forks source link

Add prop-types and create-react-class modules to solve warnings from React v15.* #7

Closed pedropazello closed 7 years ago

pedropazello commented 7 years ago

Before prop-types and create-react-class modules, this component had two warnings when React Version is 15.*

"Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"

and

"Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in  React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"

This pull request solve the warnings