github preactjs/preact 10.23.0

latest releases: 10.24.0, 10.23.2, 10.23.1...
one month 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.