Connect Video to a Room with React Hooks in Gatsby

InstructorJason Lengstorf

Share this video with your friends

Send Tweet

Now that we have the ability to get tokens and create rooms, we need to actually start hooking into rooms.

In this lesson, we'll create a function in our custom hook that will create a DOM node to display the video HTML element that Twilio returns. Because Twilio directly creates DOM nodes, we'll use refs to put those into React.