React-toastify: The styles seem to be missing with the most basic setup.

Created on 6 Aug 2018  路  5Comments  路  Source: fkhadra/react-toastify

Hello! I have set up a playground here https://stackblitz.com/edit/nomercy235-react-pg-bo6ddb?embed=1&file=index.js to test the library in a more confined environment since I'm having the same issue in my main project. I have done the installation and usage steps, but, no matter what, the toaster looks like that. Does anyone have any idea why that happens?

image

All 5 comments

Hello @NoMercy235,

You need to import the style as well:

import 'react-toastify/dist/ReactToastify.css';

Ah... Thank you! Is that specified somewhere in the docs? I couldn't find anything written about this.

Yes under the Usage section here

Maybe I'll need to highlight it.

Oh, it was in the comment section. 馃槃 Sorry, I totally missed it.

Completely missed it as well! Thanks

Was this page helpful?
0 / 5 - 0 ratings