0

What is the life cycle of a framework or library?strong text

sumon
  • 147
  • 1
  • 1
  • 5
  • You may find why should we use it and how here : https://medium.com/@krinasoni28/react-life-cycle-hooks-15d7c181d5b1 – Krina Soni Jul 20 '18 at 05:00

1 Answers1

0

Life cycle actually means events the library/framework fires whenever certain things happen so that if you want to do anything at that time, you can tap into that event.

For e.g - React has multiple life cycle events - componentWillMount, componentDidMount etc. Before rendering the component, React fires componentWillMount and when it gets rendered, it fires componentDidMount. You can define these events in your component and do anything at those events.

jsartisan
  • 270
  • 4
  • 11