Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix Roact.forwardRef description (#312)
Browse files Browse the repository at this point in the history
Fixes the Roact.forwardRef description which is currentlyRoact.createRef instead.
  • Loading branch information
rimuy authored Jul 9, 2021
1 parent fe67d5e commit d4f4a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Roact Changelog

## Unreleased Changes
* Fixed forwardRef description ([#312](https://github.com/Roblox/roact/pull/312)).

## [1.4.0](https://github.com/Roblox/roact/releases/tag/v1.4.0) (November 19th, 2020)
* Introduce forwardRef ([#307](https://github.com/Roblox/roact/pull/307)).
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Creates a new reference object that can be used with [Roact.Ref](#roactref).
!!! success "Added in Roact 1.4.0"

```
Roact.createRef(render: (props: table, ref: Ref) -> RoactElement) -> RoactComponent
Roact.forwardRef(render: (props: table, ref: Ref) -> RoactElement) -> RoactComponent
```

Creates a new component given a render function that accepts both props and a ref, allowing a ref to be forwarded to an underlying host component via [Roact.Ref](#roactref).
Expand Down

0 comments on commit d4f4a7a

Please sign in to comment.