Search code examples
htmlreactjsjsxconverters

How to convert HTML to JSX (React.js)


<!DOCTYPE html>
<html>
<body>

<script crossorigin src="https://unpkg.com/@daily-co/daily-js"></script>
<script>
  callFrame = window.DailyIframe.createFrame();
  callFrame.join({ url: 'https://your-team.daily.co/hello' })
</script>
</body>

This code is trying to display a video function by embedding. I need to convert this to jsx to add it to my webpage or find another way to create a video call using react.


Solution

  • You can use https://magic.reactjs.net/htmltojsx.htm which is an online HTML to JSX compiler.