React provides methods to handle the data during the lifecycle of a component. This is very useful when we need to update our application at particular times.