From 18fc7cb846f14de98103cc93053a0cf6673e47be Mon Sep 17 00:00:00 2001 From: eps1lon Date: Mon, 2 Oct 2023 09:07:18 +0200 Subject: [PATCH] one more --- docs/advanced/patterns_by_usecase.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/patterns_by_usecase.md b/docs/advanced/patterns_by_usecase.md index 3fa610bc..556136e2 100644 --- a/docs/advanced/patterns_by_usecase.md +++ b/docs/advanced/patterns_by_usecase.md @@ -375,7 +375,7 @@ Parent.propTypes = { The thing you cannot do is **specify which components** the children are, e.g. If you want to express the fact that "React Router `` can only have `` as children, nothing else is allowed" in TypeScript. -This is because when you write a JSX expression (`const foo = `), the resultant type is blackboxed into a generic `React.JSX.Element` type. (_[thanks @ferdaber](https://github.com/typescript-cheatsheets/react/issues/271)_) +This is because when you write a JSX expression (`const foo = `), the resultant type is blackboxed into a generic React.JSX.Element type. (_[thanks @ferdaber](https://github.com/typescript-cheatsheets/react/issues/271)_) ## Type Narrowing based on Props