Migration
createFactory migration
React 19 no longer exports createFactory. Replace a factory call with JSX, retaining its original element type, props and children. If the element type is determined dynamically, use a capitalized local variable in JSX or createElement. This example uses the replacement, not the removed API.
Formal Syntax & Structure
react syntaxreact
<Tool name="Saw" />Working Example
Example Snippetreact
function Tool({name}) { return <li>{name}</li>; }export default function App() { return <ul><Tool name='Saw'/></ul>; }