Home / Function/ ParentAndChildren() — react Function Reference

ParentAndChildren() — react Function Reference

Architecture documentation for the ParentAndChildren() function in inline-jsx-transform.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  2bf7a3a9_8258_d945_6aed_38d44783c268["ParentAndChildren()"]
  09aa076a_fe68_75ae_41ba_528ecfb21bb0["inline-jsx-transform.js"]
  2bf7a3a9_8258_d945_6aed_38d44783c268 -->|defined in| 09aa076a_fe68_75ae_41ba_528ecfb21bb0
  style 2bf7a3a9_8258_d945_6aed_38d44783c268 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inline-jsx-transform.js lines 24–37

function ParentAndChildren(props) {
  const render = () => {
    return <div key="d">{props.foo}</div>;
  };
  return (
    <Parent>
      <Child key="a" {...props} />
      <Child key="b">
        <GrandChild key="c" className={props.foo} {...props} />
        {render()}
      </Child>
    </Parent>
  );
}

Subdomains

Frequently Asked Questions

What does ParentAndChildren() do?
ParentAndChildren() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inline-jsx-transform.js.
Where is ParentAndChildren() defined?
ParentAndChildren() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/inline-jsx-transform.js at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free