Skip to content

Commit 57397a7

Browse files
fix: types
1 parent c0b50de commit 57397a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/demo-react-18/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { DocSearch } from '@docsearch/react';
2-
import type { JSX } from 'react';
2+
import React from 'react';
33
import './App.css';
44
import '@docsearch/css/dist/style.css';
55

6-
function App(): JSX.Element {
6+
function App(): React.JSX.Element {
77
return (
88
<div>
99
<h1>DocSearch v3 - React - 18</h1>

examples/demo-react-18/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StrictMode } from 'react';
1+
import React, { StrictMode } from 'react';
22
import { createRoot } from 'react-dom/client';
33

44
import App from './App.tsx';

0 commit comments

Comments
 (0)