Import the components and piece the parts together.
Copy
Ask AI
import * as Player from "@livepeer/react/player";export default () => ( <Player.Root> <Player.Portal> {/* Place portalled elements here, which can still consume the React Context from the Root, but are appended to the document */} </Player.Portal> </Player.Root>);
An optional prop specifying a container element where the portal’s children
should be rendered. If not provided, the children are appended to the body of
the document by default.