Skip to content

v0.15.0

Latest
Compare
Choose a tag to compare
@CodyJasonBennett CodyJasonBennett released this 27 Jan 08:15

What's Changed

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