World Congress 2024

Dos and don'ts with react hooks. An opinionated approach

July 19, 2024 15:40 – 16:10 Β· 30 min STAGE 4 (500)

What this session covers

Function components on React introduced hooks, a completely different approach to how you deal with the component lifecycle. This has led to many discussions on when and where to use hooks.

What values should be memoized with useMemo? When is needed useCallback? What should go in the dependency array? Why using useReducer if it does the same as useState?

This talk tries to give a swallow look at the trade-offs of using different callbacks and advice on when to use them, with practical examples.

World Congress 2024

Related talks

Open session

Rethinking React State Management: The Power of Built-In Solutions

  • Marc Brehmer

    Software Engineer at Spaceteams

Open session

Common Mistakes in Vue.js and How to Avoid Them

  • danielkellyio

    Lead Intructor at Vue School

Open session

Bringing back reactivity in "reactive" frontend

  • MichaΕ‚ Moroz

    Reliable software & legacy system modernization Β· CIO@Makimo Β· Speaker

Open session

5 tips to know before building a design system

  • Dani Coll

    Senior Frontend Engineer at Dynatrace

All sessions at this congress