Skip to content
Discussion options

You must be logged in to vote

You wouldn't use this component for that use case, you can just render an iframe directly.

import React from 'react';

export default function App() {
  const url = 'https://www.google.com'; 

  return (
    <iframe src={url} />
  );
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by liaodalin19903
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants