What's Changed
- feat!: React 19 by @CodyJasonBennett in #81
This release adds support for React 19, and removes its own act
export in favor of React.act
.
Any augmentations or references to global JSX are now to be included in the react
module. You can check out the React 19 changelog here.
import { act } from 'react'
import { type OGLElement, extend, render } from 'react-ogl'
declare module 'react-ogl' {
interface OGLElements {
customElement: OGLElement<typeof CustomElement>
}
}
extend({ CustomElement })
const root = createRoot(document.createElement('canvas'))
await act(async () => root.render(<customElement />))
Full Changelog: v0.14.2...v0.15.0