Answer the question
In order to leave comments, you need to log in
Can this be called a competent implementation of notifications?
It is necessary to implement a notification component that disappears after a certain period of time (Or the user can remove it himself. How notifications are implemented in VK).
The main component is App.js. I need to render the component when something comes through Redux, right?
Can you please tell me how to implement it correctly?
Thank you!
Answer the question
In order to leave comments, you need to log in
There is a great library for toasting - React-Toastify . It is quite possible to use it, or at least look at its source code, if you want to do something of your own.
As for the redux, there shouldn't be any big difficulties here - by some action you pull the toast of the desired type and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question