Skip to content

Commit

Permalink
React 19 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jan 30, 2025
1 parent b3b8f43 commit e7258b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/react/react.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useEffect, useState, createContext, useContext, useReducer, type ReactNode } from "react";
import type { JSX } from "../tools/JSX";
import { type Oidc, createOidc, type ParamsOfCreateOidc, OidcInitializationError } from "../oidc";
import { assert, type Equals } from "../vendor/frontend/tsafe";
import { id } from "../vendor/frontend/tsafe";
Expand Down
5 changes: 5 additions & 0 deletions src/tools/JSX.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import type { ReactElement } from "react";
export namespace JSX {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Element extends ReactElement<any, any> {}
}

0 comments on commit e7258b9

Please sign in to comment.