Skip to content

Commit e3af018

Browse files
committed
chore(docs): defaultArguments is not recommended
1 parent fc43b0a commit e3af018

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/rules/require-default-props.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ NotAComponent.propTypes = {
210210
- `enabled`: for enabling the rule. 0=off, 1=warn, 2=error. Defaults to 0.
211211
- `forbidDefaultForRequired`: optional boolean to forbid prop default for a required prop. Defaults to false.
212212
- `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".
214214
- `ignoreFunctionalComponents`: optional boolean to ignore this rule for functional components. Defaults to false. Deprecated, use `functions` instead.
215215
216216
### `forbidDefaultForRequired`
@@ -336,8 +336,6 @@ class Greeting extends React.Component {
336336
- "defaultArguments": Use object default arguments
337337
- "ignore": Ignore this rule for functional components.
338338
339-
"defaultArguments" is recommended. We will change it to deafult later.
340-
341339
Examples of **incorrect** code for this rule, when set to `defaultArguments`:
342340
343341
```jsx

0 commit comments

Comments
 (0)