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

Commit

Permalink
Merge ad7e031 into fe67d5e
Browse files Browse the repository at this point in the history
  • Loading branch information
rimuy committed Jul 9, 2021
2 parents fe67d5e + ad7e031 commit 595ba38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -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
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 595ba38

Please sign in to comment.