From 030c4535367f19f4247ae9678d286d63d71ddda9 Mon Sep 17 00:00:00 2001 From: rising-dragon360 Date: Wed, 2 Dec 2020 20:02:43 +0100 Subject: [PATCH] Fix inline code not showing (#373) --- 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 f64a23e..38ba0f3 100644 --- a/docs/advanced/patterns_by_usecase.md +++ b/docs/advanced/patterns_by_usecase.md @@ -459,7 +459,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 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 JSX.Element type. (_[thanks @ferdaber](https://github.com/typescript-cheatsheets/react/issues/271)_) ## Type Narrowing based on Props