Skip to content

Commit

Permalink
Update React docs link for propTypes (WordPress#51208)
Browse files Browse the repository at this point in the history
The former link now redirects to legacy docs at https://legacy.reactjs.org/docs/typechecking-with-proptypes.html , with a warning link to the current docs at https://react.dev/reference/react/Component#static-proptypes
  • Loading branch information
benlk authored and sethrubenstein committed Jul 13, 2023
1 parent 960f6a6 commit b505b50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/contributors/code/coding-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,9 @@ Documenting a function component should be treated the same as any other functio
*
* @return {?string} Block title.
*/
````
```

For class components, there is no recommendation for documenting the props of the component. Gutenberg does not use or endorse the [`propTypes` static class member](https://reactjs.org/docs/typechecking-with-proptypes.html).
For class components, there is no recommendation for documenting the props of the component. Gutenberg does not use or endorse the [`propTypes` static class member](https://react.dev/reference/react/Component#static-proptypes).

## PHP

Expand Down

0 comments on commit b505b50

Please sign in to comment.