From 13b04213605ca0657dcbcd44833ba03c415d59bc Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Tue, 30 Apr 2024 17:30:29 -0500 Subject: [PATCH] Replace usage of deprecated `JSX` global namespace with `React.JSX` - This change was made by running `npx types-react-codemod scoped-jsx .` in preparation for React 19. --- .../src/components/HomepageFeatures/index.tsx | 164 +++++++++--------- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/website/src/components/HomepageFeatures/index.tsx b/website/src/components/HomepageFeatures/index.tsx index a5d8fa9e..3e293095 100644 --- a/website/src/components/HomepageFeatures/index.tsx +++ b/website/src/components/HomepageFeatures/index.tsx @@ -1,82 +1,82 @@ -import Heading from '@theme/Heading' -import clsx from 'clsx' -import type { FC } from 'react' -import { memo } from 'react' -import styles from './styles.module.css' - -interface FeatureItem { - title: string - description: JSX.Element -} - -const FeatureList: FeatureItem[] = [ - { - title: 'Predictable', - description: ( - <> - Like Redux, Reselect gives users a consistent mental model for - memoizing functions. Extract input values, recalculate when any input - changes. - - ) - }, - { - title: 'Optimized', - description: ( - <> - Reselect{' '} - - minimizes the number of times expensive computations are performed - - , reuses existing result references if nothing has changed, and improves - performance. - - ) - }, - { - title: 'Customizable', - description: ( - <> - Reselect comes with fast defaults, but provides{' '} - flexible customization options. Swap memoization methods, change - equality checks, and customize for your needs. - - ) - }, - { - title: 'Type-Safe', - description: ( - <> - Reselect is designed for great TypeScript support. Generated - selectors infer all types from input selectors. - - ) - } -] - -const Feature: FC = memo(({ title, description }) => { - return ( -
-
- {title} -

{description}

-
-
- ) -}) - -const HomepageFeatures: FC = () => { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ) -} - -export default memo(HomepageFeatures) +import Heading from '@theme/Heading' +import clsx from 'clsx' +import type { FC, JSX } from 'react' +import { memo } from 'react' +import styles from './styles.module.css' + +interface FeatureItem { + title: string + description: JSX.Element +} + +const FeatureList: FeatureItem[] = [ + { + title: 'Predictable', + description: ( + <> + Like Redux, Reselect gives users a consistent mental model for + memoizing functions. Extract input values, recalculate when any input + changes. + + ) + }, + { + title: 'Optimized', + description: ( + <> + Reselect{' '} + + minimizes the number of times expensive computations are performed + + , reuses existing result references if nothing has changed, and improves + performance. + + ) + }, + { + title: 'Customizable', + description: ( + <> + Reselect comes with fast defaults, but provides{' '} + flexible customization options. Swap memoization methods, change + equality checks, and customize for your needs. + + ) + }, + { + title: 'Type-Safe', + description: ( + <> + Reselect is designed for great TypeScript support. Generated + selectors infer all types from input selectors. + + ) + } +] + +const Feature: FC = memo(({ title, description }) => { + return ( +
+
+ {title} +

{description}

+
+
+ ) +}) + +const HomepageFeatures: FC = () => { + return ( +
+
+
+ {FeatureList.map((props, idx) => ( + + ))} +
+
+
+ ) +} + +export default memo(HomepageFeatures)