I have takein reference of issues of function components of this repo already.
I am stuck at this stage.
I want to alert my notification when my error state is changed. I was thinking of calling myfunc in setErros actions.
but then i have to somehow export myfunc from dashboard component where i have write the code.
is there is any other way.
I am using redux and react-hooks.
I have takein reference of issues of function components of this repo already.
I am stuck at this stage.
I want to alert my notification when my error state is changed. I was thinking of calling myfunc in setErros actions. but then i have to somehow export myfunc from dashboard component where i have write the code. is there is any other way.
alert.js (action)
DashBoard.js (comp)