The main thing that React does is keep our UI in sync with our application state. The tool that it uses to do this is called a “re-render” Each re-render is a snapshot of what the application's UI should look like at a given moment in time. For example, let's suppose our example also features a digital clock. We could
Table of contents
IntroductionLink to this heading The basic ideaLink to this heading Use case 1: Heavy computationsLink to this heading Use case 2: Preserved referencesLink to this heading The useCallback hookLink to this heading When to use these hooksLink to this heading The Joy of React12 Comments
Sort: