Last active
October 14, 2020 13:35
-
-
Save ljmotta/957a3e52fdd0489cb9c53ce9e21cace7 to your computer and use it in GitHub Desktop.
EmbeddedTodoList Ref Forwarding Component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TodoListApi, TodoListChannelApi } from "../api"; | |
export type Props = TodoListChannelApi & { | |
targetOrigin: string; | |
envelopePath: string; | |
}; | |
export const EmbeddedTodoList = React.forwardRef<TodoListApi, Props>((props, forwardedRef) => { | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment