github preactjs/preact 5.0.0-beta9

latest releases: 10.22.0, 10.21.0, 10.20.2...
pre-release7 years ago

New Features

  • Allow functions as VNode children (#154)

This is used in libraries that provide animation functionality by re-rendering function children with changing props:

render() {
  return (
    <SomeAnimator start={0} end={155} loop>
      { hue => (
        <span style={{ color: `hsl(${hue}, 100%, 60%)` }}>Rainbow</span>
      ) }
    </SomeAnimator>
  );
}

Don't miss a new preact release

NewReleases is sending notifications on new releases.