Skip to content

Commit

Permalink
Update packages/components/CONTRIBUTING.md
Browse files Browse the repository at this point in the history
Co-authored-by: Lena Morita <lena@jaguchi.com>
  • Loading branch information
ciampo and mirka authored Jun 14, 2022
1 parent ff88bb5 commit fe0646f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ Given a component folder (e.g. `packages/components/src/unit-control`):
) { /* ... */ }
```

7. If the component doesn't forwards its ref yet, wrap the component in a `forwardRed` call. Alternatively, if you want to take advantage of the [Context system](#context-system), you can use the `contextConnect` utility function (which also takes care of adding ref forwarding)
7. If the component doesn't forward its ref yet, wrap the component in a `forwardRef` call. Alternatively, if you want to take advantage of the [Context system](#context-system), you can use the `contextConnect` utility function (which also takes care of adding ref forwarding)

```jsx
// With `forwardRef`
Expand Down

0 comments on commit fe0646f

Please sign in to comment.