Closed kfirapps closed 6 years ago
Very cool! I think it might be worth taking a pass to reduce the boilerplate if that's possible.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@eczarny may have some opinions as well. He was deeply involved in my proposals around typed props.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
@kfirapps has updated the pull request.
We will review this change internally and sync it to the open source later.
Component Tree Creation
CKBuildComponent(..)
, the infra creates a component tree (CKComponentTreeNode
) recursively with the new render method.CKComponentTreeNode
is the equivalent ofCKComponentScopeFrame
; but the main difference is that every component has one.State
Changes in
CKComponent
classesCKSingleChildComponent
- (CKComponent *)render:(id)state
. The default implementation returns {}.CKGroupComponent
- (std::vector<CKComponent *>)renderGroup:(id)state
. The default implementation returns {}.CKFlexboxComponent
{CKFlexboxChild} → {CKComponent}