We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b50de commit 57397a7Copy full SHA for 57397a7
examples/demo-react-18/src/App.tsx
@@ -1,9 +1,9 @@
1
import { DocSearch } from '@docsearch/react';
2
-import type { JSX } from 'react';
+import React from 'react';
3
import './App.css';
4
import '@docsearch/css/dist/style.css';
5
6
-function App(): JSX.Element {
+function App(): React.JSX.Element {
7
return (
8
<div>
9
<h1>DocSearch v3 - React - 18</h1>
examples/demo-react-18/src/main.tsx
@@ -1,4 +1,4 @@
-import { StrictMode } from 'react';
+import React, { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
0 commit comments