Skip to main content

children ↔ enables Composable Composite Components by nesting additional React.createElement calls. Used to pass innerText. React recursively evals nested Child Elements to form a VDOM tree

References

  1. !cannot create [JSX](jsx) w/o explicit [**_children_**](children_reactcreateelement)
Type '{ children: never[]; color: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ChildProps'.
Property 'children' does not exist on type 'IntrinsicAttributes & ChildProps'.ts(2322)