reaguj sprawdź, czy zamontowany

The empty dependency array [] passed as a second parameter to 
the useEffect() hook causes it to only run once when the componentmounts...
florinrelea