Why this syntax useEffect(callback[, dependencies]); is used to show that useEffect has two argument?

Viewed 29

This is what is used:

useEffect(callback[, dependencies]);

Why does the square brakets begin with a coma? I my mind , I have something like this:

useEffect(callback, [dependencies]);

Thanks for your explanations.

0 Answers
Related