|
|
|
|
|
by afavour
1226 days ago
|
|
The fact that “strict mode” means useEffect gets called twice feels like a great example of the ways in which React is not simple. It’s not quite directly using a promise but I was surprised I can’t use an async function in useEffect. It’s pretty common to perform async operations there, after all. |
|