Skip to content

Instantly share code, notes, and snippets.

@kimberleejohnson

kimberleejohnson/App.js

Last active Sep 9, 2020
Embed
What would you like to do?
Sample code for joining a Daily video call In a React app
// In App.js
/**
* Starts joining an existing call.
*/
const startJoiningCall = useCallback(url => {
const callObject = DailyIframe.createCallObject();
// update component state to a "joining" state...
callObject.join({ url });
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.