Skip to content

Instantly share code, notes, and snippets.

@ljmotta
Last active October 14, 2020 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ljmotta/957a3e52fdd0489cb9c53ce9e21cace7 to your computer and use it in GitHub Desktop.
Save ljmotta/957a3e52fdd0489cb9c53ce9e21cace7 to your computer and use it in GitHub Desktop.
EmbeddedTodoList Ref Forwarding Component
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