Skip to content

Instantly share code, notes, and snippets.

@MilanKaur-01
Last active February 6, 2023 01:43
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 MilanKaur-01/cdee390648eec653cd611b918f099bdb to your computer and use it in GitHub Desktop.
Save MilanKaur-01/cdee390648eec653cd611b918f099bdb to your computer and use it in GitHub Desktop.
useEffect(() => {
const init = async () => {
setMessage('Getting Teams meeting link...');
//Call Azure Function to get the meeting link
res = await fetch(process.env.REACT_APP_TEAMS_MEETING_FUNCTION as string);
let link = await res.text();
setTeamsMeetingLink(link);
console.log('Teams meeting link', link);
}
init();
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment