Loading tutorials
useState and useEffect, and how props and children flow between components. It also assumes you know that JavaScript objects, arrays and functions are reference values. You will learn how to find out whether a render is a real problem befor7 min readReact.memo, useMemo, useCallback and dependency arrays in the chapters that follow.5 min readuseState, how props and children are passed, and that JavaScript objects, arrays and functions are compared by reference. Earlier chapters covered why components re-render and how to measure that with the Profiler. Here you learn what `R7 min readuseState, and how props and children pass between components. It also assumes you know that JavaScript objects, arrays, and functions are reference values. Earlier chapters covered why components re-render, referential equality, and the shall6 min readuseState and useEffect, and that objects, arrays and functions in JavaScript are reference values. Earlier chapters covered why components re-render and what referential equality means. Here you will see how React decides whether a hook sho6 min readuseState, useEffect, and how props and children move between components. It also assumes you know that JavaScript objects, arrays, and functions are reference values, so two separate {} literals are never equal under ===. The previous c6 min readuseState and useEffect, passing props, and that JavaScript functions and objects are compared by reference. It also assumes you have read the earlier chapters on React.memo, unstable props, useMemo, and dependency arrays.6 min readmemo.6 min readuseState, props and children, and the basics of React.memo, useMemo and useCallback from earlier chapters. You should also be able to read a createContext and useContext example. The chapter covers how context updates interact with memoization, why memo ca5 min readuseState, and props. It also assumes you understand referential equality and the default shallow comparison that React.memo performs. You should be comfortable with why inline objects and functions break memo.6 min readReact.memo, useMemo and useCallback work. You should also know how referential equality and dependency arrays behave, and how to record a render in the React DevTools Profiler. The question here is when those tools should stay out of your code, because6 min readReact.memo, useMemo and useCallback compare values with Object.is, and why inline objects and functions break memoization. It covers what the React Compiler does, how to adopt it, and what 7 min read