Skip to content

Releases: pmndrs/react-nil

v2.0.0

13 Jan 20:26

Choose a tag to compare

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 { useState, useEffect, act } from 'react'
import { render } from 'react-nil'

declare module 'react' {
  namespace JSX {
    interface IntrinsicElements {
      timestamp: Record<string, unknown>
    }
  }
}

function Test() {
  const [value, setValue] = useState(-1)
  useEffect(() => setValue(Date.now()), [])
  return <timestamp value={value} />
}

const container = await act(async () => render(<Test />))

// { type: 'timestamp', props: { value: number }, children: [] }
console.log(container.head)

Full Changelog: v1.3.1...v2.0.0

v1.3.1

13 Jan 20:08

Choose a tag to compare

What's Changed

Full Changelog: v1.3.0...v1.3.1

v1.3.0

13 Jan 19:27

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.3.0

v1.2.0

07 Sep 01:54

Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.2.0

v1.1.2

06 Sep 00:53

Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

05 Sep 23:50

Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

v1.1.0

04 Sep 10:20

Choose a tag to compare

What's Changed

Full Changelog: v1.0.1...v1.1.0

v1.0.1

04 Sep 09:57

Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

04 Sep 08:40
4efdf62

Choose a tag to compare

What's Changed

Full Changelog: v0.0.3...v1.0.0