Snippets about React

1 snippet

Back to all snippets

  1. SNP099

    Clean up event listeners in useEffect

    The resize listener that stayed alive after the component was gone, and how to not do that.

    14 lines of jsx in 2 blocks, 5 lines of explanation.

    #A51 js react