I am a react beginner and was looking at the "ComponentDidMount" life cycle. What I saw is that ComponentDidMount is called once the page is mounted in the browser. Absolutely fine. But what amazed me is that We can set a subscription or do event Listener in that part too. Then how are we subscribing and where is it subscribing in react? Like how does it work in react?
Aucun commentaire:
Enregistrer un commentaire