Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created January 8, 2021 10:41
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 DanyF-github/2bb611c96632a5e0c58651b55538dfa0 to your computer and use it in GitHub Desktop.
Save DanyF-github/2bb611c96632a5e0c58651b55538dfa0 to your computer and use it in GitHub Desktop.
// src/pages/VideoSession.tsx
import React from 'react';
import { useParams } from 'react-router-dom';
import { Room } from '../components/Videocall';
import { VideoSessionParams } from '../models';
const VideoSession = () => {
// get the uuid from the url
const { uuid } = useParams<VideoSessionParams>();
// render the Room component and pass the UUID property
return (
<>
<p>Joining to session {uuid}</p>
<Room uuid={uuid} />
</>
);
};
export default VideoSession;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment