+ +We can also pass in an _empty_ array of dependencies as a second argument, like +this: + +```js +useEffect(() => { + console.log("useEffect called"); +}, []); // second argument is an empty array +``` + +Now, the side effect will only run the _first time_ ...
Provide another example demonstrating situations where useEffect is not necessary, emphasizing alternative approaches to handling side effects.