• beirut_bootleg
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    When used properly like the websocket example it’s clear what it does. If you’re using useEffect to sync props and state, then yes, you’re going to have trouble reasoning through it. The solution is to not use useEffect because you’re no longer writing React, you’re writing Angular. No named function expression will fix that.