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

Fix Roact.forwardRef description #312

Merged
merged 2 commits into from
Jul 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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