React call api every 5 seconds. creating timer with react.
React call api every 5 seconds. Learn about setTimeout in React Components using Hooks.