From 56031d9ea7f53994074fa4e99b06abe6c5e65131 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 14 Aug 2023 15:58:09 +0200 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d0af867c..efd5b6b5 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ const App = ({ message }: AppProps): JSX.Element =>
{message}
; const App = ({ message }: { message: string }) =>
{message}
; // Alternatively, you can use `React.FunctionComponent` (or the shorthand `React.FC`), if you prefer. -// With latest React types and TypeScript 5.1. it's mostly a stylistic choice, otherwise discouraged. +// With latest React types (earliest is `@types/react@18.0.0`) and TypeScript 5.1. it's mostly a stylistic choice, otherwise discouraged. const App: React.FunctionComponent<{ message: string }> = ({ message }) => (
{message}
);