Skip to content

Commit 620d360

Browse files
author
Brian Vaughn
authored
Updated master -> main references (#3769)
1 parent a4d4893 commit 620d360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/docs/higher-order-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ The `compose` utility function is provided by many third-party libraries includi
297297

298298
## Convention: Wrap the Display Name for Easy Debugging {#convention-wrap-the-display-name-for-easy-debugging}
299299

300-
The container components created by HOCs show up in the [React Developer Tools](https://github.com/facebook/react/tree/master/packages/react-devtools) like any other component. To ease debugging, choose a display name that communicates that it's the result of a HOC.
300+
The container components created by HOCs show up in the [React Developer Tools](https://github.com/facebook/react/tree/main/packages/react-devtools) like any other component. To ease debugging, choose a display name that communicates that it's the result of a HOC.
301301

302302
The most common technique is to wrap the display name of the wrapped component. So if your higher-order component is named `withSubscription`, and the wrapped component's display name is `CommentList`, use the display name `WithSubscription(CommentList)`:
303303

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const MarkdownPage = ({
132132
</span>
133133
<a
134134
css={sharedStyles.articleLayout.editLink}
135-
href={`https://github.com/reactjs/reactjs.org/tree/master/${markdownRemark.fields.path}`}>
135+
href={`https://github.com/reactjs/reactjs.org/tree/main/${markdownRemark.fields.path}`}>
136136
Edit this page
137137
</a>
138138
</div>

0 commit comments

Comments
 (0)