What is the point of invoking a function asynchronously when it doesn’t return anything (it just produces side effects like updating a database or whatever)? Am I missing something, here?

If not and you only wish to demonstrate the syntax for async functions in useEffect, then you should probably clarify that without a return, you might as well call:

useEffect(() => {

Frontend Developer at AMBOSS