github preactjs/preact 5.0.0-beta9

latest releases: 10.25.0, 10.24.3, 10.24.2...
pre-release8 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.