Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

v0.13.0

Compare
Choose a tag to compare
@acdlite acdlite released this 18 Dec 02:50
· 402 commits to master since this release

withAttachedProps()

(actually added in 0.12, forgot to update release notes)

withAttachedProps(
  createChildProps: (getProps: () => Object) => Object,
  BaseComponent: ReactElementType
): ReactElementType

Note: The name of this helper will likely change to avoid confusion.

The first parameter createChildProps() is a function which accepts a function getProps(), which returns the current owner props. The props returned by createChildProps() are immutable and do not change throughout the lifecycle of the component.

Bugfix

Fixed bug with renderComponent() #84