react-three-fiber

Re-parenting

We support portals. You can use them to teleport a piece of the view into another container. Click here for a small demo.

import { createPortal } from 'react-three-fiber'
function Component() {
// "target" can be a three object, like a group, etc
return createPortal(<mesh />, target)
Edit this page on GitHub