tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

please add support/documentation for import ReactToastr from 'react-toastr' #102

Open alilland opened 7 years ago

alilland commented 7 years ago

there is no documentation for how to import via import ReactToastr from 'react-toastr'

alilland commented 7 years ago

also, im getting warnings --

Warning: ToastMessage.animation: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

RangarajKaushikSundar commented 7 years ago

Hi @aronlmin,

Thank you for the messages. There is an example available in the react-toastr page.

In order to get rid of the warnings, there needs to be some refactoring done the parts of the code. This should be done sometime soon.

Thanks, Kaushik.

alilland commented 7 years ago

i actually refactored it already locally, i will submit it in a day or two :)