Skip to content

Commit d7a7b06

Browse files
committed
docs: minor updates
1 parent b0f50c9 commit d7a7b06

31 files changed

+31
-31
lines changed

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-redundant-custom-hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type MessageID = CamelCase<typeof RULE_NAME>;
1111
// Hooks that are not call other hooks are redundant
1212
// In React, hooks are like colored functions, and defining a custom hook that doesn't call other hooks is like defining a generator function that doesn't yield or an async function that doesn't await.
1313
// "Custom Hooks may call other Hooks (that’s their whole purpose)." from https://react.dev/warnings/invalid-hook-call-warning
14-
// Further Reading: https://react.dev/learn/reusing-logic-with-custom-hooks#should-all-functions-called-during-rendering-start-with-the-use-prefix
14+
// Further reading: https://react.dev/learn/reusing-logic-with-custom-hooks#should-all-functions-called-during-rendering-start-with-the-use-prefix
1515
export default createRule<[], MessageID>({
1616
meta: {
1717
type: "problem",

website/pages/docs/rules/dom-no-find-dom-node.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ class AutoSelectingInput extends Component {
5454
}
5555
```
5656

57-
## Further Reading
57+
## Further reading
5858

5959
- [React: APIs findDOMNode](https://react.dev/reference/react-dom/findDOMNode)

website/pages/docs/rules/dom-no-missing-button-type.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ function Example() {
3535
}
3636
```
3737

38-
## Further Reading
38+
## Further reading
3939

4040
- [MDN: button - notes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#notes)

website/pages/docs/rules/dom-no-missing-iframe-sandbox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ function Example() {
3838
}
3939
```
4040

41-
## Further Reading
41+
## Further reading
4242

4343
- [MDN: iframe - sandbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attributes)

website/pages/docs/rules/dom-no-render-return-value.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ function doSomethingWithInst(inst: HTMLDivElement | null) {
3838
ReactDOM.render(<div id="app" ref={doSomethingWithInst} />, document.body);
3939
```
4040

41-
## Further Reading
41+
## Further reading
4242

4343
- [Legacy React: react-dom/render](https://legacy.reactjs.org/docs/react-dom.html#render)

website/pages/docs/rules/dom-no-unsafe-iframe-sandbox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ function Example() {
4141
}
4242
```
4343

44-
## Further Reading
44+
## Further reading
4545

4646
- [MDN: iframe - sandbox](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attributes)

website/pages/docs/rules/ensure-forward-ref-using-ref.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ const Example = React.forwardRef<HTMLButtonElement>((props, ref) => {
3838
});
3939
```
4040

41-
## Further Reading
41+
## Further reading
4242

4343
- [React: forwardRef](https://react.dev/reference/react/forwardRef)

website/pages/docs/rules/hooks-extra-no-direct-set-state-in-use-effect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function List({ items }) {
237237

238238
The limitation may be lifted in the future.
239239

240-
### Further Reading
240+
### Further reading
241241

242242
- [React: useState](https://react.dev/reference/react/useState#setstate)
243243
- [React: useEffect](https://react.dev/reference/react/useEffect)

website/pages/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function List({ items }) {
237237

238238
The limitation may be lifted in the future.
239239

240-
### Further Reading
240+
### Further reading
241241

242242
- [React: useState](https://react.dev/reference/react/useState#setstate)
243243
- [React: useLayoutEffect](https://react.dev/reference/react/useLayoutEffect)

website/pages/docs/rules/hooks-extra-no-redundant-custom-hook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function useCounter() {
4444
}
4545
```
4646

47-
## Further Reading
47+
## Further reading
4848

4949
- [React: invalid-hook-call-warning (the first note)](https://react.dev/warnings/invalid-hook-call-warning)
5050
- [React: should-all-functions-called-during-rendering-start-with-the-use-prefix (the deep dive)](https://react.dev/learn/reusing-logic-with-custom-hooks#should-all-functions-called-during-rendering-start-with-the-use-prefix)

0 commit comments

Comments
 (0)