Closed pke closed 8 years ago
Hi @pke! Thanks for asking!
SimpleNotification
works in the following way:
SimpleNotification
component.SimpleNotification
render the messages and remove then sending an action SEND_NOTIFICATION with an empty string. Creating a new state with no notification messages.I think because it sends an action is not a "dumb" component. I should remove mapStateToProps
though because it doesn't use it.
Thanks!
I wonder why the SimpleNotification component is connected? It does neither use state nor actions and could therefor be a "dumb" component. Or am I missing something?