From ce52a57d09a940c95fe338db5189d8e68387b8f9 Mon Sep 17 00:00:00 2001 From: Brian McIntyre Date: Mon, 19 Dec 2022 13:52:02 -0500 Subject: [PATCH] [Docs] Correct example for prefer-exact-props rule --- docs/rules/prefer-exact-props.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/prefer-exact-props.md b/docs/rules/prefer-exact-props.md index c9878f7b7a..a24b101320 100644 --- a/docs/rules/prefer-exact-props.md +++ b/docs/rules/prefer-exact-props.md @@ -40,7 +40,7 @@ In this case, one could instead enforce only the exact props being used by using class Foo extends React.Component { props: {| bar: string - }| + |} render() { return

{this.props.bar}

;