React - Best case approach to use useEffect as a simple trigger