W
W
wsdrap2018-03-13 13:25:04
JavaScript
wsdrap, 2018-03-13 13:25:04

How to make notifications in react?

How to make a react notification component with different states (info, success, warning, error)?
I did it with refs, but it doesn't seem to be good practices.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2018-03-13
@wsdrap

Have a look at the sources of this project
ps didn't run into problems using refs (but maybe because I don't use it often)

A
Anton, 2018-03-13
@SPAHI4

https://github.com/gor181/react-notification-system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question