Skip to content

Commit

Permalink
Replace JSX.IntrinsicElements with React.JSX.IntrinsicElements
Browse files Browse the repository at this point in the history
Fixes jaredpalmer#4011.

This is for compatibility with React v19, where the global JSX namespace went away.
  • Loading branch information
Philipp91 committed Dec 7, 2024
1 parent 0fd2890 commit d6e8cc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/formik/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ export interface SharedRenderProps<T> {
}

export type GenericFieldHTMLAttributes =
| JSX.IntrinsicElements['input']
| JSX.IntrinsicElements['select']
| JSX.IntrinsicElements['textarea'];
| React.JSX.IntrinsicElements['input']
| React.JSX.IntrinsicElements['select']
| React.JSX.IntrinsicElements['textarea'];

/** Field metadata */
export interface FieldMetaProps<Value> {
Expand Down

0 comments on commit d6e8cc2

Please sign in to comment.