npm @react-three/fiber 8.2.0
v8.2.0

latest releases: 9.6.0, 10.0.0-canary.1b98c17, 10.0.0-canary.c3fa45d...
3 years ago

What's Changed

This release exposes a ThreeElements interface containing native three JSX elements to discern from DOM JSX types.

import type { ThreeElements } from '@react-three/fiber'

function Mesh(props: ThreeElements['mesh']) {
  return <mesh {...props} />
}

Extending JSX.IntrinsicElements is deprecated in favor of extending ThreeElements directly with the following:

declare module '@react-three/fiber' {
  interface ThreeElements {
    myMesh: Object3DNode<MyMesh, typeof MyMesh>
  }
}

New Contributors

Full Changelog: v8.1.0...v8.2.0

Don't miss a new fiber release

NewReleases is sending notifications on new releases.