You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/require-default-props.md
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ NotAComponent.propTypes = {
210
210
- `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
211
211
- `forbidDefaultForRequired`: optional boolean to forbid prop default for a required prop. Defaults to false.
212
212
- `classes`: optional string to determine which strategy a class component uses for defaulting props. Defaults to "defaultProps".
213
-
- `functions`: optional string to determine which strategy a functional component uses for defaulting props. "defaultArguments" is recommended. We will change it to deafult later. Defaults to "defaultProps".
213
+
- `functions`: optional string to determine which strategy a functional component uses for defaulting props. Defaults to "defaultProps".
214
214
- `ignoreFunctionalComponents`: optional boolean to ignore this rule for functional components. Defaults to false. Deprecated, use `functions` instead.
215
215
216
216
### `forbidDefaultForRequired`
@@ -336,8 +336,6 @@ class Greeting extends React.Component {
336
336
- "defaultArguments": Use object default arguments
337
337
- "ignore": Ignore this rule for functional components.
338
338
339
-
"defaultArguments" is recommended. We will change it to deafult later.
340
-
341
339
Examples of **incorrect** code for this rule, when set to `defaultArguments`:
0 commit comments