Skip to content

5.0.0-beta9

Pre-release
Pre-release
Compare
Choose a tag to compare
@developit developit released this 06 Jun 17:09
· 5384 commits to main since this release

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>
  );
}