@ -34,7 +34,7 @@ export default function ProductPage({ productId, referrer, theme }) {
}, [productId, referrer]);
```
[See more examples below.](#examples-rerendering)
[See more examples below.](#usage)
#### Parameters {/*parameters*/}
@ -30,7 +30,7 @@ function MyComponent() {
// ...
[See more examples below.](#examples-basic)
@ -40,7 +40,7 @@ function ChatRoom({ roomId }) {
}
[See more examples below.](#examples-connecting)
@ -46,7 +46,7 @@ function useCSS(rule) {
@ -34,7 +34,7 @@ function TodoList({ todos, tab }) {
[See more examples below.](#examples-recalculation)
@ -34,7 +34,7 @@ function MyComponent() {
The convention is to name state variables like `[something, setSomething]` using [array destructuring.](https://javascript.info/destructuring-assignment)