npm preact 10.23.0

latest releases: 10.24.3, 10.24.2, 10.24.1...
3 months ago

Features

This adds support for returning a function in functional refs, example

<input
  ref={(ref) => {
    // Assign ref, do something with it
    return () => {
      // ref cleanup, when the element unmounts
      // we run the cleanup
    };
  }}
/>

Fixes

Types

Maintenance

Don't miss a new preact release

NewReleases is sending notifications on new releases.