pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/typescript-cheatsheets/react/commit/091b325c699961e885667393727e4e9769388a9e

8b22e253.css" /> Add missing word; Consistent capitalization (#722) · typescript-cheatsheets/react@091b325 · GitHub
Skip to content

Commit 091b325

Browse files
authored
Add missing word; Consistent capitalization (#722)
1 parent 3129901 commit 091b325

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ type AppProps = {
189189
// Easiest way to declare a Function Component; return type is inferred.
190190
const App = ({ message }: AppProps) => <div>{message}</div>;
191191

192-
// you can choose annotate the return type so an error is raised if you accidentally return some other type
192+
// You can choose to annotate the return type so an error is raised if you accidentally return some other type
193193
const App = ({ message }: AppProps): React.JSX.Element => <div>{message}</div>;
194194

195-
// you can also inline the type declaration; eliminates naming the prop types, but looks repetitive
195+
// You can also inline the type declaration; eliminates naming the prop types, but looks repetitive
196196
const App = ({ message }: { message: string }) => <div>{message}</div>;
197197

198198
// Alternatively, you can use `React.FunctionComponent` (or `React.FC`), if you prefer.

docs/basic/getting-started/function-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ type AppProps = {
1414
// Easiest way to declare a Function Component; return type is inferred.
1515
const App = ({ message }: AppProps) => <div>{message}</div>;
1616

17-
// you can choose annotate the return type so an error is raised if you accidentally return some other type
17+
// You can choose to annotate the return type so an error is raised if you accidentally return some other type
1818
const App = ({ message }: AppProps): React.JSX.Element => <div>{message}</div>;
1919

20-
// you can also inline the type declaration; eliminates naming the prop types, but looks repetitive
20+
// You can also inline the type declaration; eliminates naming the prop types, but looks repetitive
2121
const App = ({ message }: { message: string }) => <div>{message}</div>;
2222

2323
// Alternatively, you can use `React.FunctionComponent` (or `React.FC`), if you prefer.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy