Javascript – App rerendering without the use of useEffect Hook
I am learning useEffect Hook in React and I have a question based on its usage. Following is the code, which is still working fine as expected without the use of useEffect Hook. My question is - if this code…