This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
v0.13.0
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