reactive and proactive code example
Example 1: what is reactive method
reactive approach is based on responding
to events after they have happened.
Example 2: proactive vs reactive
A proactive approach focuses on eliminating
problems before they have a chance to appear
and a reactive approach is based on responding
to events after they have happened.