Site is currently on development mode

React, Inline Functions, and Performance

Last updated 2 years ago by Ryan Florence


What is an “inline function”

In the context of React, an inline function is a function that is defined while React is “rendering”. There are two meanings of “render” in React that people often get confused about: (1) getting the React elements from your components (calling your component’s render method) during an update and (2) actually rendering updates to the DOM. When I refer to “rendering” in this article, I’m talking about #1.

Read full Article