Skip to content
masterclass Buddy

React 19+ · Function

createFactory

createFactory creates a function that builds React elements of one fixed type. It is deprecated and was removed in React 19; use JSX or createElement instead.

Last updated

Since
16.13.0

Syntax

createFactory(type)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • createElement
  • JSX
  • Fragment
  • React 19

Source: createFactory – React. Checked 2026-11-03.